diff options
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index f77fa22754bc..5fc29ad7e26f 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -1049,10 +1049,8 @@ static int __init rtc_init(void) | |||
1049 | return -ENODEV; | 1049 | return -ENODEV; |
1050 | 1050 | ||
1051 | pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); | 1051 | pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); |
1052 | if (IS_ERR(pdev)) | ||
1053 | return PTR_ERR(pdev); | ||
1054 | 1052 | ||
1055 | return 0; | 1053 | return PTR_RET(pdev); |
1056 | } | 1054 | } |
1057 | 1055 | ||
1058 | module_init(rtc_init); | 1056 | module_init(rtc_init); |