diff options
Diffstat (limited to 'arch/powerpc/sysdev/rtc_cmos_setup.c')
-rw-r--r-- | arch/powerpc/sysdev/rtc_cmos_setup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/rtc_cmos_setup.c b/arch/powerpc/sysdev/rtc_cmos_setup.c index 9afba924e94f..af79e1ea74b6 100644 --- a/arch/powerpc/sysdev/rtc_cmos_setup.c +++ b/arch/powerpc/sysdev/rtc_cmos_setup.c | |||
@@ -62,10 +62,7 @@ static int __init add_rtc(void) | |||
62 | pd = platform_device_register_simple("rtc_cmos", -1, | 62 | pd = platform_device_register_simple("rtc_cmos", -1, |
63 | &res[0], num_res); | 63 | &res[0], num_res); |
64 | 64 | ||
65 | if (IS_ERR(pd)) | 65 | return PTR_RET(pd); |
66 | return PTR_ERR(pd); | ||
67 | |||
68 | return 0; | ||
69 | } | 66 | } |
70 | fs_initcall(add_rtc); | 67 | fs_initcall(add_rtc); |
71 | 68 | ||