lkml.org 
[lkml]   [2019]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 4/8] PM / devfreq: tegra: Don't release IRQ manually on driver removal
Date
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(-)

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);
--
2.21.0
\
 
 \ /
  Last update: 2019-04-12 00:31    [W:0.109 / U:7.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site