Skip to content

Commit

Permalink
[WATCHDOG] watchdog-driver-for-at32ap700x-devices-fix-2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Wim Van Sebroeck committed Jun 10, 2007
1 parent c37f271 commit 97a2a2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/char/watchdog/at32ap700x_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 97a2a2e

Please sign in to comment.