Fix parent of watchdog_device so that /sys/class/watchdog/watchdogn/device is populated.
cc: Mathieu Poirier <[email protected]> cc: Jonas Aaberg <[email protected]> Signed-off-by: Pratyush Anand <[email protected]> --- drivers/watchdog/ux500_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/ux500_wdt.c b/drivers/watchdog/ux500_wdt.c index 9de09ab00838..37c084353cce 100644 --- a/drivers/watchdog/ux500_wdt.c +++ b/drivers/watchdog/ux500_wdt.c @@ -96,6 +96,7 @@ static int ux500_wdt_probe(struct platform_device *pdev) ux500_wdt.max_timeout = WATCHDOG_MAX28; } + ux500_wdt.parent = &pdev->dev; watchdog_set_nowayout(&ux500_wdt, nowayout); /* disable auto off on sleep */ -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
