small rdc-2.6 fixes (from sn9, thanks!)
[openwrt.git] / target / linux / rdc-2.6 / files / arch / i386 / mach-rdc / wdt.c
index 4e6f12b..39956f3 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2007 Florian Fainelli <florian@openwrt.org>
  *
- * This driver is highly inspired from the rdc321x_wdt driver
+ * This driver is highly inspired from the cpu5_wdt driver
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -212,7 +212,7 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
 
        if ( (err = misc_register(&rdc321x_wdt_misc)) < 0 ) {
                printk(KERN_ERR PFX "misc_register failed\n");
-               goto no_misc;
+               return err;
        }
 
        /* Reset the watchdog */
@@ -230,9 +230,6 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
        printk(KERN_INFO PFX "init success\n");
 
        return 0;
-
-no_misc:
-       return err;
 }
 
 static int rdc321x_wdt_remove(struct platform_device *pdev)
This page took 0.021194 seconds and 4 git commands to generate.