Thread (14 messages) flat view 14 messages, 4 authors, 2011-06-17

[MPCore Watchdog]: Convert from misc_dev to dynamic device node.

From: Peter Fordham <hidden>
Date: 2011-06-15 00:19:06

On Tue, Jun 14, 2011 at 04:29:26PM -0700, Peter Fordham wrote:
quoted
The current MPCore watchdog driver uses a misc_dev device node.
This patch changes it to use dynamically allocated device numbers.
I'm not sure that this is the correct thing to do. ?All other watchdog devices
use a miscdevice with a major:minor of 10:130, is there a specific reason
that this node needs to be dynamic?
I was under the impressions that dynamic device nodes were the way of the
future. Is that not the case?

I'll add the relevant checks in other places as per your suggestions.
I believe the sysfs classes are pretty much
deprecated now in preference of a bus too.
Can you give me some more info here? I thought the sysfs stuff was the
new right way of doing stuff. The class stuff allows udev to automatically
create the right device node.

thanks,


-Pete
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help