Commit f0cd2f87 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k misc_register audit

Correct error found in arch/m68k/ whilst auditing the use of misc_register()
in 2.5.44.
misc_register() returns 0 on success, and a negative number on failure.
(Trivial patches misc_register-02[67] from Michael Still <mikal@stillhq.com>)
parent 72a4ba8f
......@@ -177,7 +177,6 @@ int __init rtc_DP8570A_init(void)
return -ENODEV;
printk(KERN_INFO "DP8570A Real Time Clock Driver v%s\n", RTC_VERSION);
misc_register(&rtc_dev);
return 0;
return misc_register(&rtc_dev);
}
......@@ -168,7 +168,6 @@ int __init rtc_MK48T08_init(void)
return -ENODEV;
printk(KERN_INFO "MK48T08 Real Time Clock Driver v%s\n", RTC_VERSION);
misc_register(&rtc_dev);
return 0;
return misc_register(&rtc_dev);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment