* Duan Jiong <duanj.fnst@xxxxxxxxxxxxxx> [140411 03:10]: > PTR_RET is deprecated. Do not recommend its usage anymore. > Use PTR_ERR_OR_ZERO instead. > > Signed-off-by: Duan Jiong <duanj.fnst@xxxxxxxxxxxxxx> > --- > arch/arm/mach-omap2/gpmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c > index ab43755..6a11bda 100644 > --- a/arch/arm/mach-omap2/gpmc.c > +++ b/arch/arm/mach-omap2/gpmc.c > @@ -1772,7 +1772,7 @@ static int __init omap_gpmc_init(void) > pdev = omap_device_build(DEVICE_NAME, -1, oh, NULL, 0); > WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); > > - return PTR_RET(pdev); > + return PTR_ERR_OR_ZERO(pdev); > } > omap_postcore_initcall(omap_gpmc_init); OK looks like we have #define PTR_RET(p) PTR_ERR_OR_ZERO(p). But what about the others? How about a single patch to deal with them all? $ git grep PTR_RET arch/arm/*omap* arch/arm/mach-omap2/devices.c: return PTR_RET(pdev); arch/arm/mach-omap2/devices.c: return PTR_RET(pdev); arch/arm/mach-omap2/fb.c: return PTR_RET(pdev); arch/arm/mach-omap2/pmu.c: return PTR_RET(omap_pmu_dev); Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html