diff options
author | Andrew Victor <andrew@sanpeople.com> | 2006-12-04 15:56:18 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2006-12-07 22:46:50 +0100 |
commit | e0b79e0bc261ad320f6c218ac6823f7ca859171f (patch) | |
tree | af0aaf30edbe6d42217baa242c6d7aba8bbb406e /drivers/char/watchdog/mpcore_wdt.c | |
parent | 74e86ab884fb491c208905bdc32a9d95740be583 (diff) | |
download | linux-stable-e0b79e0bc261ad320f6c218ac6823f7ca859171f.tar.gz linux-stable-e0b79e0bc261ad320f6c218ac6823f7ca859171f.tar.bz2 linux-stable-e0b79e0bc261ad320f6c218ac6823f7ca859171f.zip |
[WATCHDOG] watchdog miscdevice patch
It looks like the recent changes to 'struct miscdevice' have impacted
some of the Watchdog drivers.
at91rm9200_wdt.c:205: error: 'struct miscdevice' has no member named 'dev'
For the AT91RM9200 driver I just replaced "miscdevice.dev" with
"miscdevice.parent".
The mpcore_wdt.c and omap_wdt.c seem similarly affected.
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/char/watchdog/mpcore_wdt.c')
-rw-r--r-- | drivers/char/watchdog/mpcore_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/mpcore_wdt.c b/drivers/char/watchdog/mpcore_wdt.c index 3404a9c67f08..e88947f8fe53 100644 --- a/drivers/char/watchdog/mpcore_wdt.c +++ b/drivers/char/watchdog/mpcore_wdt.c @@ -347,7 +347,7 @@ static int __devinit mpcore_wdt_probe(struct platform_device *dev) goto err_free; } - mpcore_wdt_miscdev.dev = &dev->dev; + mpcore_wdt_miscdev.parent = &dev->dev; ret = misc_register(&mpcore_wdt_miscdev); if (ret) { dev_printk(KERN_ERR, _dev, "cannot register miscdev on minor=%d (err=%d)\n", |