From: Ajay Kumar Date: Wed, 20 Feb 2013 02:13:44 +0000 (+1100) Subject: video: exynos_dp: move disable_irq() to exynos_dp_suspend() X-Git-Tag: next-20130220~1^2~639 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0f931377b9d45c1f2c186288d6ad56750c9a8943;p=karo-tx-linux.git video: exynos_dp: move disable_irq() to exynos_dp_suspend() disable_irq() should be moved to exynos_dp_suspend(), because enable_irq() is called at exynos_dp_resume(). Signed-off-by: Ajay Kumar Signed-off-by: Jingoo Han Cc: Florian Tobias Schandinat Signed-off-by: Andrew Morton --- diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index c7374c0c1bce..de9d4da0e3da 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -1124,8 +1124,6 @@ static int exynos_dp_remove(struct platform_device *pdev) struct exynos_dp_platdata *pdata = pdev->dev.platform_data; struct exynos_dp_device *dp = platform_get_drvdata(pdev); - disable_irq(dp->irq); - flush_work(&dp->hotplug_work); if (pdev->dev.of_node) { @@ -1148,6 +1146,8 @@ static int exynos_dp_suspend(struct device *dev) struct exynos_dp_platdata *pdata = dev->platform_data; struct exynos_dp_device *dp = dev_get_drvdata(dev); + disable_irq(dp->irq); + flush_work(&dp->hotplug_work); if (dev->of_node) {