diff options
author | Adrian-Leonard Radu <ady8radu@gmail.com> | 2013-03-09 22:07:00 -0500 |
---|---|---|
committer | Michael Ellerman <michael@ellerman.id.au> | 2013-04-17 23:03:48 -0400 |
commit | 09652b00cd249a1f1a2cd1a70d31e880f24d06cc (patch) | |
tree | 58998dab4044865704d120ce3bf4b2496778ba07 /arch/powerpc/kernel/time.c | |
parent | db38f290cadc16304b84f6d18cbaa06251dde875 (diff) |
powerpc: Use PTR_RET instead of IS_ERR/PTR_ERR
Signed-off-by: Adrian-Leonard Radu <ady8radu@gmail.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
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); |