Commit 97a2a2ea authored by Andrew Morton's avatar Andrew Morton Committed by Wim Van Sebroeck
Browse files

[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: default avatarWim Van Sebroeck <wim@iguana.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent c37f2713
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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,