--- zzzz-none-000/linux-3.10.107/arch/arm/mach-imx/devices/platform-mxc_rnga.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mach-imx/devices/platform-mxc_rnga.c 2021-02-04 17:41:59.000000000 +0000 @@ -48,9 +48,6 @@ #endif /* if defined(CONFIG_SOC_IMX31) */ ret = ERR_PTR(-ENODEV); - if (IS_ERR(ret)) - return PTR_ERR(ret); - - return 0; + return PTR_ERR_OR_ZERO(ret); } arch_initcall(imxXX_add_mxc_rnga);