From: Jean Delvare Date: Wed, 5 Nov 2014 01:39:21 +0000 (+0800) Subject: watchdog: iTCO_wdt: Fix the parent device X-Git-Tag: upstream/snapshot3+hdmi~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f24140ff66ec61af497d4fb6d9bae0d9ebf2aca;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck (cherry picked from commit c90789baa8cec363093c5ec292c989b6f22d8f32) Signed-off-by: Chang Rebecca Swee Fun --- diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index b0319ac..0ba1b7c 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c @@ -512,7 +512,7 @@ static int iTCO_wdt_probe(struct platform_device *dev) iTCO_wdt_watchdog_dev.bootstatus = 0; iTCO_wdt_watchdog_dev.timeout = WATCHDOG_TIMEOUT; watchdog_set_nowayout(&iTCO_wdt_watchdog_dev, nowayout); - iTCO_wdt_watchdog_dev.parent = dev->dev.parent; + iTCO_wdt_watchdog_dev.parent = &dev->dev; /* Make sure the watchdog is not running */ iTCO_wdt_stop(&iTCO_wdt_watchdog_dev);