summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorAdrian-Leonard Radu <ady8radu@gmail.com>2013-03-10 03:07:00 (GMT)
committerMichael Ellerman <michael@ellerman.id.au>2013-04-18 03:03:48 (GMT)
commit09652b00cd249a1f1a2cd1a70d31e880f24d06cc (patch)
tree58998dab4044865704d120ce3bf4b2496778ba07 /arch/powerpc/sysdev
parentdb38f290cadc16304b84f6d18cbaa06251dde875 (diff)
downloadlinux-09652b00cd249a1f1a2cd1a70d31e880f24d06cc.tar.xz
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/sysdev')
-rw-r--r--arch/powerpc/sysdev/rtc_cmos_setup.c5
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 9afba92..af79e1e 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)
pd = platform_device_register_simple("rtc_cmos", -1,
&res[0], num_res);
- if (IS_ERR(pd))
- return PTR_ERR(pd);
-
- return 0;
+ return PTR_RET(pd);
}
fs_initcall(add_rtc);