]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers-video-backlight-ams369fg06c-convert-ams369fg06-to-dev_pm_ops-fix
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Mar 2013 04:07:35 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:56 +0000 (15:22 +1100)
- Remove unnecessary ifdefs.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/ams369fg06.c

index 505d44682ddd78c847fd936a355c5fd928b8fc52..319fef6cb4222728489f8a9df2a104655dfa1b13 100644 (file)
@@ -533,7 +533,7 @@ static int ams369fg06_remove(struct spi_device *spi)
        return 0;
 }
 
-#if defined(CONFIG_PM)
+#ifdef CONFIG_PM_SLEEP
 static int ams369fg06_suspend(struct device *dev)
 {
        struct ams369fg06 *lcd = dev_get_drvdata(dev);
@@ -555,10 +555,10 @@ static int ams369fg06_resume(struct device *dev)
 
        return ams369fg06_power(lcd, FB_BLANK_UNBLANK);
 }
+#endif
 
 static SIMPLE_DEV_PM_OPS(ams369fg06_pm_ops, ams369fg06_suspend,
                        ams369fg06_resume);
-#endif
 
 static void ams369fg06_shutdown(struct spi_device *spi)
 {
@@ -571,9 +571,7 @@ static struct spi_driver ams369fg06_driver = {
        .driver = {
                .name   = "ams369fg06",
                .owner  = THIS_MODULE,
-#ifdef CONFIG_PM
                .pm     = &ams369fg06_pm_ops,
-#endif
        },
        .probe          = ams369fg06_probe,
        .remove         = ams369fg06_remove,