]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/watchdog/w83977f_wdt.c
Make constants in kernel/timeconst.h fixed 64 bits
[linux-2.6-omap-h63xx.git] / drivers / watchdog / w83977f_wdt.c
index b475529d2475954bee8cd8b79b1a4a8033277d0e..b209bcd7f78945aaf64726201295984384bd4161 100644 (file)
@@ -494,20 +494,20 @@ static int __init w83977f_wdt_init(void)
                goto err_out;
        }
 
-       rc = misc_register(&wdt_miscdev);
+       rc = register_reboot_notifier(&wdt_notifier);
        if (rc)
        {
-               printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
-                       wdt_miscdev.minor, rc);
+               printk(KERN_ERR PFX "cannot register reboot notifier (err=%d)\n",
+                       rc);
                goto err_out_region;
        }
 
-       rc = register_reboot_notifier(&wdt_notifier);
+       rc = misc_register(&wdt_miscdev);
        if (rc)
        {
-               printk(KERN_ERR PFX "cannot register reboot notifier (err=%d)\n",
-                       rc);
-               goto err_out_miscdev;
+               printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
+                       wdt_miscdev.minor, rc);
+               goto err_out_reboot;
        }
 
        printk(KERN_INFO PFX "initialized. timeout=%d sec (nowayout=%d testmode=%d)\n",
@@ -515,8 +515,8 @@ static int __init w83977f_wdt_init(void)
 
        return 0;
 
-err_out_miscdev:
-       misc_deregister(&wdt_miscdev);
+err_out_reboot:
+       unregister_reboot_notifier(&wdt_notifier);
 err_out_region:
        release_region(IO_INDEX_PORT,2);
 err_out: