mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c
PATCH RESEND 1/1 mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c
This removes two calls to the deprecated marco,PTR_RET in the files,fb.c and pmu.c for the functions,omap_init_vrfb and omap_init_pmu respectfully. Furthermore these are now replaced by calling the correctly non deprecacted function, PTR_ERR_OR_ZERO in both functions.
--- arch/arm/mach-omap2/fb.c | 2 +- arch/arm/mach-omap2/pmu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/fb.c +1 -1
@@ -84,7 +84,7 @@ int __init omap_init_vrfb(void) pdev =platform_device_register_resndata (NULL ,"omapvrfb" ,-1 , res, num_res,NULL ,0 ); - return PTR_RET(pdev); + return PTR_ERR_OR_ZERO(pdev); }#else int __init omap_init_vrfb (void ) {return 0 ; }
arch/arm/mach-omap2/pmu.c +1 -1
@@ -55,7 +55,7 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[])WARN (IS_ERR (omap_pmu_dev),"Can't build omap_device for %s.\n" , dev_name); -return PTR_RET (omap_pmu_dev); +return PTR_ERR_OR_ZERO (omap_pmu_dev); }static int __init omap_init_pmu (void )
Signature · 1 line
2.1.4
Re: [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco,PTR_RET in the files,fb.c and pmu.c
Quoted 5 lines · Nicholas Krause
This removes two calls to the deprecated marco,PTR_RET in the files,fb.c and
pmu.cfor the functions,omap_init_vrfb andomap_init_pmurespectfully. Furthermore these are now replaced by calling the correctly non deprecacted function,PTR_ERR_OR_ZEROin both functions.
I've applied the original version today as they seem to be the same.
Thanks,
Tony
PATCH RESEND 1/1 mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c
Quoted 7 lines · Tony Lindgren
Quoted 5 lines · Nicholas Krause
This removes two calls to the deprecated marco,PTR_RET in the files,fb.c and
pmu.cfor the functions,omap_init_vrfb andomap_init_pmurespectfully. Furthermore these are now replaced by calling the correctly non deprecacted function,PTR_ERR_OR_ZEROin both functions.
Quoted 6 lines
I've applied the original version today as they seem to be the same.
Thanks,
Tony
That's fine. I just resent due to the rule about resending after a week. Nick
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.