]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: snvs: fix build with CONFIG_PM_SLEEP disabled
authorGuenter Roeck <linux@roeck-us.net>
Sat, 13 Dec 2014 00:54:12 +0000 (16:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:45 +0000 (12:42 -0800)
commit9a0417b35422bcf7605737bd7de0b3136dc8f477
tree717c885abf6bc3e89466b681430856c2e80ba01a
parent284d8e0f1d26023f43cb63b687c41ef32693ba6f
rtc: snvs: fix build with CONFIG_PM_SLEEP disabled

Commit 373c220fec5c ("drivers/rtc/rtc-snvs: fix suspend/resume")
replaces SIMPLE_DEV_PM_OPS with direct declaration of snvs_rtc_pm_ops,
but does so outside #ifdef CONFIG_PM_SLEEP.  This causes the driver
build to fail if CONFIG_PM_SLEEP is not configured.

Fixes: 373c220fec5c ("drivers/rtc/rtc-snvs: fix suspend/resume")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: Sanchayan Maity <maitysanchayan@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-snvs.c