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/at91rm9200_wdt.c | |
parent | 74e86ab884fb491c208905bdc32a9d95740be583 (diff) | |
download | lwn-e0b79e0bc261ad320f6c218ac6823f7ca859171f.tar.gz lwn-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/at91rm9200_wdt.c')
-rw-r--r-- | drivers/char/watchdog/at91rm9200_wdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/watchdog/at91rm9200_wdt.c b/drivers/char/watchdog/at91rm9200_wdt.c index 4e7a1145e78f..c8da2b0a1cd8 100644 --- a/drivers/char/watchdog/at91rm9200_wdt.c +++ b/drivers/char/watchdog/at91rm9200_wdt.c @@ -202,9 +202,9 @@ static int __init at91wdt_probe(struct platform_device *pdev) { int res; - if (at91wdt_miscdev.dev) + if (at91wdt_miscdev.parent) return -EBUSY; - at91wdt_miscdev.dev = &pdev->dev; + at91wdt_miscdev.parent = &pdev->dev; res = misc_register(&at91wdt_miscdev); if (res) @@ -220,7 +220,7 @@ static int __exit at91wdt_remove(struct platform_device *pdev) res = misc_deregister(&at91wdt_miscdev); if (!res) - at91wdt_miscdev.dev = NULL; + at91wdt_miscdev.parent = NULL; return res; } |