diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-03-10 16:28:17 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2014-03-31 07:34:13 -0400 |
commit | c90789baa8cec363093c5ec292c989b6f22d8f32 (patch) | |
tree | 279e9ca8b5dff4ffe59edd1d9293605a86371602 /drivers/watchdog | |
parent | 0bcd0b6a47431d9895dc2dd6a8c4185008849131 (diff) |
watchdog: iTCO_wdt: Fix the parent device
The watchdog's parent is iTCO_wdt (the platform device) not lpc_ich
(the PCI device.) Setting the parent right makes it much easier for
the user to figure out which driver/module is handling the watchdog
device node.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/iTCO_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 6532e7a260d8..0e6c0333f775 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c | |||
@@ -485,7 +485,7 @@ static int iTCO_wdt_probe(struct platform_device *dev) | |||
485 | iTCO_wdt_watchdog_dev.bootstatus = 0; | 485 | iTCO_wdt_watchdog_dev.bootstatus = 0; |
486 | iTCO_wdt_watchdog_dev.timeout = WATCHDOG_TIMEOUT; | 486 | iTCO_wdt_watchdog_dev.timeout = WATCHDOG_TIMEOUT; |
487 | watchdog_set_nowayout(&iTCO_wdt_watchdog_dev, nowayout); | 487 | watchdog_set_nowayout(&iTCO_wdt_watchdog_dev, nowayout); |
488 | iTCO_wdt_watchdog_dev.parent = dev->dev.parent; | 488 | iTCO_wdt_watchdog_dev.parent = &dev->dev; |
489 | 489 | ||
490 | /* Make sure the watchdog is not running */ | 490 | /* Make sure the watchdog is not running */ |
491 | iTCO_wdt_stop(&iTCO_wdt_watchdog_dev); | 491 | iTCO_wdt_stop(&iTCO_wdt_watchdog_dev); |