]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
video: exynos_dp: move disable_irq() to exynos_dp_suspend()
authorAjay Kumar <ajaykumar.rs@samsung.com>
Wed, 20 Feb 2013 02:13:44 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:10 +0000 (16:52 +1100)
disable_irq() should be moved to exynos_dp_suspend(), because enable_irq()
is called at exynos_dp_resume().

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/exynos/exynos_dp_core.c

index c7374c0c1bceaa1ef74fd79d0c1fc852aaba8c3e..de9d4da0e3daaf465966bb3837b42245acba2de4 100644 (file)
@@ -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) {