]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/sysdev/rtc_cmos_setup.c
PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.
[~andy/linux] / arch / powerpc / sysdev / rtc_cmos_setup.c
index af79e1ea74b6dcb061b89d2032770914332ff1da..af0f9beddca9be85b3720bf84109033a1ee13aa3 100644 (file)
@@ -62,7 +62,7 @@ static int  __init add_rtc(void)
        pd = platform_device_register_simple("rtc_cmos", -1,
                                             &res[0], num_res);
 
-       return PTR_RET(pd);
+       return PTR_ERR_OR_ZERO(pd);
 }
 fs_initcall(add_rtc);