mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-07 11:30:37 +00:00
ar71xx: ar71xx_wdt: add shutdown handler
SVN-Revision: 29705
This commit is contained in:
parent
9054bc91b3
commit
714a9bd641
@ -269,9 +269,15 @@ static int __devexit ar71xx_wdt_remove(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ar71xx_wdt_shutdown(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
ar71xx_wdt_disable();
|
||||||
|
}
|
||||||
|
|
||||||
static struct platform_driver ar71xx_wdt_driver = {
|
static struct platform_driver ar71xx_wdt_driver = {
|
||||||
.probe = ar71xx_wdt_probe,
|
.probe = ar71xx_wdt_probe,
|
||||||
.remove = __devexit_p(ar71xx_wdt_remove),
|
.remove = __devexit_p(ar71xx_wdt_remove),
|
||||||
|
.shutdown = ar71xx_wdt_shutdown,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user