Re: setting miscdevice.parent after misc_register()

From: Wim Van Sebroeck
Date: Tue Jun 08 2010 - 15:34:27 EST

Hi Akinobu,

> In drivers/watchdog/at32ap700x_wdt.c, and drivers/watchdog/sch311x_wdt.c
> miscdevice.parent is set after misc_register().
> drivers/watchdog/at32ap700x_wdt.c:
> ret = misc_register(&wdt->miscdev);
> ...
> wdt->miscdev.parent = &pdev->dev;
> But it does nothing. (the miscdevice will not be a child of that parent
> device in sysfs)
> So should it be set before misc_register() or just keep it as-is?

It should be fixed by setting it before the misc_register call.
I'll do the necessary.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at