*
* 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
if ( (err = misc_register(&rdc321x_wdt_misc)) < 0 ) {
printk(KERN_ERR PFX "misc_register failed\n");
- goto no_misc;
+ return err;
}
/* Reset the watchdog */
printk(KERN_INFO PFX "init success\n");
return 0;
-
-no_misc:
- return err;
}
static int rdc321x_wdt_remove(struct platform_device *pdev)