watchdog: create all the proper device files
Create the watchdog class and it's associated devices. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:

committed by
Wim Van Sebroeck

parent
2bbeed016d
commit
d6b469d915
@@ -365,6 +365,7 @@ int watchdog_dev_register(struct watchdog_device *watchdog)
|
||||
int err, devno;
|
||||
|
||||
if (watchdog->id == 0) {
|
||||
watchdog_miscdev.parent = watchdog->parent;
|
||||
err = misc_register(&watchdog_miscdev);
|
||||
if (err != 0) {
|
||||
pr_err("%s: cannot register miscdev on minor=%d (err=%d).\n",
|
||||
|
Reference in New Issue
Block a user