--- zzzz-none-000/linux-3.10.107/arch/powerpc/sysdev/rtc_cmos_setup.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/sysdev/rtc_cmos_setup.c 2021-02-04 17:41:59.000000000 +0000 @@ -62,7 +62,7 @@ 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);