diff options
author | Alan Cox <alan@linux.intel.com> | 2012-05-11 12:00:20 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-05-30 07:54:46 +0200 |
commit | d6b469d915ae348b3bb8b25034063d6870ff4a00 (patch) | |
tree | 7bc00fa1870ba2fb1a7943c1a1d9e524752cb299 /drivers/watchdog/watchdog_dev.c | |
parent | 2bbeed016dd96045ec82c3a309afddcc3a0db1d2 (diff) | |
download | linux-stable-d6b469d915ae348b3bb8b25034063d6870ff4a00.tar.gz linux-stable-d6b469d915ae348b3bb8b25034063d6870ff4a00.tar.bz2 linux-stable-d6b469d915ae348b3bb8b25034063d6870ff4a00.zip |
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>
Diffstat (limited to 'drivers/watchdog/watchdog_dev.c')
-rw-r--r-- | drivers/watchdog/watchdog_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index 3b22582bcb04..1f011f2d6e48 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c @@ -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", |