mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
watchdog: remove empty pm-functions
While checking what watchdog drivers usually do in suspend/resume to spot common behaviour for the watchdog framework, I found these drivers which do nothing but add some cruft. Remove it, it is superfluous. New approaches should probably be done with pm_ops anyway. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
081d83a339
commit
2fc5d52b21
3 changed files with 0 additions and 29 deletions
|
@ -284,27 +284,8 @@ static int __exit at91wdt_remove(struct platform_device *pdev)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
|
||||||
|
|
||||||
static int at91wdt_suspend(struct platform_device *pdev, pm_message_t message)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int at91wdt_resume(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
#define at91wdt_suspend NULL
|
|
||||||
#define at91wdt_resume NULL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct platform_driver at91wdt_driver = {
|
static struct platform_driver at91wdt_driver = {
|
||||||
.remove = __exit_p(at91wdt_remove),
|
.remove = __exit_p(at91wdt_remove),
|
||||||
.suspend = at91wdt_suspend,
|
|
||||||
.resume = at91wdt_resume,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "at91_wdt",
|
.name = "at91_wdt",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
|
|
@ -923,15 +923,10 @@ static void iTCO_wdt_shutdown(struct platform_device *dev)
|
||||||
iTCO_wdt_stop();
|
iTCO_wdt_stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define iTCO_wdt_suspend NULL
|
|
||||||
#define iTCO_wdt_resume NULL
|
|
||||||
|
|
||||||
static struct platform_driver iTCO_wdt_driver = {
|
static struct platform_driver iTCO_wdt_driver = {
|
||||||
.probe = iTCO_wdt_probe,
|
.probe = iTCO_wdt_probe,
|
||||||
.remove = __devexit_p(iTCO_wdt_remove),
|
.remove = __devexit_p(iTCO_wdt_remove),
|
||||||
.shutdown = iTCO_wdt_shutdown,
|
.shutdown = iTCO_wdt_shutdown,
|
||||||
.suspend = iTCO_wdt_suspend,
|
|
||||||
.resume = iTCO_wdt_resume,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
|
|
|
@ -472,15 +472,10 @@ static void sch311x_wdt_shutdown(struct platform_device *dev)
|
||||||
sch311x_wdt_stop();
|
sch311x_wdt_stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define sch311x_wdt_suspend NULL
|
|
||||||
#define sch311x_wdt_resume NULL
|
|
||||||
|
|
||||||
static struct platform_driver sch311x_wdt_driver = {
|
static struct platform_driver sch311x_wdt_driver = {
|
||||||
.probe = sch311x_wdt_probe,
|
.probe = sch311x_wdt_probe,
|
||||||
.remove = __devexit_p(sch311x_wdt_remove),
|
.remove = __devexit_p(sch311x_wdt_remove),
|
||||||
.shutdown = sch311x_wdt_shutdown,
|
.shutdown = sch311x_wdt_shutdown,
|
||||||
.suspend = sch311x_wdt_suspend,
|
|
||||||
.resume = sch311x_wdt_resume,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
|
|
Loading…
Reference in a new issue