diff options
author | Andrew Morton | 2007-06-08 01:08:53 +0200 |
---|---|---|
committer | Wim Van Sebroeck | 2007-06-10 22:11:10 +0200 |
commit | 97a2a2ea1ad856d5375fecf689e253adca387602 (patch) | |
tree | 2f7ef7e2d28355c038d76230e52789530c4ffe31 /drivers | |
parent | [WATCHDOG] watchdog-driver-for-at32ap700x-devices-fix (diff) | |
download | kernel-qcow2-linux-97a2a2ea1ad856d5375fecf689e253adca387602.tar.gz kernel-qcow2-linux-97a2a2ea1ad856d5375fecf689e253adca387602.tar.xz kernel-qcow2-linux-97a2a2ea1ad856d5375fecf689e253adca387602.zip |
[WATCHDOG] watchdog-driver-for-at32ap700x-devices-fix-2
standard ifdef-reduction trick.
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/watchdog/at32ap700x_wdt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/watchdog/at32ap700x_wdt.c b/drivers/char/watchdog/at32ap700x_wdt.c index 588b26d400cd..f08ea9493d2f 100644 --- a/drivers/char/watchdog/at32ap700x_wdt.c +++ b/drivers/char/watchdog/at32ap700x_wdt.c @@ -283,14 +283,15 @@ static int at32_wdt_resume(struct platform_device *pdev) at32_wdt_start(); return 0; } +#else +#define at32_wdt_suspend NULL +#define at32_wdt_resume NULL #endif static struct platform_driver at32_wdt_driver = { .remove = __exit_p(at32_wdt_remove), -#ifdef CONFIG_PM .suspend = at32_wdt_suspend, .resume = at32_wdt_resume, -#endif .driver = { .name = "at32_wdt", .owner = THIS_MODULE, |