On 18-08-15, 10:17, Pratyush Anand wrote: > Fix parent of watchdog_device so that /sys/class/watchdog/watchdogn/device > is populated. > > cc: Viresh Kumar <vireshk@xxxxxxxxxx> > Signed-off-by: Pratyush Anand <panand@xxxxxxxxxx> > --- > drivers/watchdog/sp805_wdt.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c > index 4e7fec36f5c3..01d816251302 100644 > --- a/drivers/watchdog/sp805_wdt.c > +++ b/drivers/watchdog/sp805_wdt.c > @@ -226,6 +226,7 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id) > wdt->adev = adev; > wdt->wdd.info = &wdt_info; > wdt->wdd.ops = &wdt_ops; > + wdt->wdd.parent = &adev->dev; > > spin_lock_init(&wdt->lock); > watchdog_set_nowayout(&wdt->wdd, nowayout); Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html