lkml.org 
[lkml]   [2010]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: setting miscdevice.parent after misc_register()
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.

Thanks,
Wim.



\
 
 \ /
  Last update: 2010-06-08 21:37    [W:0.047 / U:1.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site