diff options
author | Adrian-Leonard Radu | 2013-03-10 04:07:00 +0100 |
---|---|---|
committer | Michael Ellerman | 2013-04-18 05:03:48 +0200 |
commit | 09652b00cd249a1f1a2cd1a70d31e880f24d06cc (patch) | |
tree | 58998dab4044865704d120ce3bf4b2496778ba07 /arch/powerpc/platforms/ps3/time.c | |
parent | powerpc/kernel: Cleanup on rtas_pci.c (diff) | |
download | kernel-qcow2-linux-09652b00cd249a1f1a2cd1a70d31e880f24d06cc.tar.gz kernel-qcow2-linux-09652b00cd249a1f1a2cd1a70d31e880f24d06cc.tar.xz kernel-qcow2-linux-09652b00cd249a1f1a2cd1a70d31e880f24d06cc.zip |
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/platforms/ps3/time.c')
-rw-r--r-- | arch/powerpc/platforms/ps3/time.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/ps3/time.c b/arch/powerpc/platforms/ps3/time.c index 40b5cb433005..cba1e6be68e5 100644 --- a/arch/powerpc/platforms/ps3/time.c +++ b/arch/powerpc/platforms/ps3/time.c @@ -89,10 +89,8 @@ static int __init ps3_rtc_init(void) return -ENODEV; pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - return 0; + return PTR_RET(pdev); } module_init(ps3_rtc_init); |