[v1,4/8] PM / devfreq: tegra: Don't release IRQ manually on driver removal
diff mbox series

Message ID 20190411222914.25539-5-digetx@gmail.com
State Not Applicable
Headers show
Series
  • devfreq: Tegra devfreq fixes / improvements and Tegra30 support
Related show

Commit Message

Dmitry Osipenko April 11, 2019, 10:29 p.m. UTC
The IRQ releasing is handled by "managed resources", hence there is no
need to release IRQ manually.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/devfreq/tegra-devfreq.c | 3 ---
 1 file changed, 3 deletions(-)

Patch
diff mbox series

diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c
index 6185e7ab20a8..ed67d7a48176 100644
--- a/drivers/devfreq/tegra-devfreq.c
+++ b/drivers/devfreq/tegra-devfreq.c
@@ -717,7 +717,6 @@  static int tegra_devfreq_probe(struct platform_device *pdev)
 static int tegra_devfreq_remove(struct platform_device *pdev)
 {
 	struct tegra_devfreq *tegra = platform_get_drvdata(pdev);
-	int irq = platform_get_irq(pdev, 0);
 	u32 val;
 	unsigned int i;
 
@@ -729,8 +728,6 @@  static int tegra_devfreq_remove(struct platform_device *pdev)
 
 	actmon_write_barrier(tegra);
 
-	devm_free_irq(&pdev->dev, irq, tegra);
-
 	clk_notifier_unregister(tegra->emc_clock, &tegra->rate_change_nb);
 
 	clk_disable_unprepare(tegra->clock);