]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/watchdog/at91rm9200_wdt.c
[WATCHDOG] watchdog miscdevice patch
[linux-2.6-omap-h63xx.git] / drivers / char / watchdog / at91rm9200_wdt.c
index 4e7a1145e78fd472a70f9442e3a0c7bec461741d..c8da2b0a1cd86d74d9b7c989bd3111bf7845fcc3 100644 (file)
@@ -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;
 }