- Remove unnecessary ifdefs.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
return 0;
}
-#if defined(CONFIG_PM)
+#ifdef CONFIG_PM_SLEEP
static int ams369fg06_suspend(struct device *dev)
{
struct ams369fg06 *lcd = dev_get_drvdata(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)
{
.driver = {
.name = "ams369fg06",
.owner = THIS_MODULE,
-#ifdef CONFIG_PM
.pm = &ams369fg06_pm_ops,
-#endif
},
.probe = ams369fg06_probe,
.remove = ams369fg06_remove,