2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 17:53:56 +08:00

[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>
This commit is contained in:
Andrew Morton 2007-06-07 16:08:53 -07:00 committed by Wim Van Sebroeck
parent c37f271320
commit 97a2a2ea1a

View File

@ -283,14 +283,15 @@ static int at32_wdt_resume(struct platform_device *pdev)
at32_wdt_start(); at32_wdt_start();
return 0; return 0;
} }
#else
#define at32_wdt_suspend NULL
#define at32_wdt_resume NULL
#endif #endif
static struct platform_driver at32_wdt_driver = { static struct platform_driver at32_wdt_driver = {
.remove = __exit_p(at32_wdt_remove), .remove = __exit_p(at32_wdt_remove),
#ifdef CONFIG_PM
.suspend = at32_wdt_suspend, .suspend = at32_wdt_suspend,
.resume = at32_wdt_resume, .resume = at32_wdt_resume,
#endif
.driver = { .driver = {
.name = "at32_wdt", .name = "at32_wdt",
.owner = THIS_MODULE, .owner = THIS_MODULE,