aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2015-05-10 00:57:34 -0400
committerTony Lindgren <tony@atomide.com>2015-05-20 13:43:37 -0400
commit87a2028f2329b8f091046316ee1910b97d3854b1 (patch)
tree666b042a47604df6dd91255a67e15e8cf3bdbb95
parent8297955f3bd44b7b5a69549ed95e851b473bb675 (diff)
ARM: 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. Signed-off-by: Nicholas Krause <xerofoify@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/fb.c2
-rw-r--r--arch/arm/mach-omap2/pmu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/fb.c b/arch/arm/mach-omap2/fb.c
index 26e28e94f625..1f1ecf8807eb 100644
--- a/arch/arm/mach-omap2/fb.c
+++ b/arch/arm/mach-omap2/fb.c
@@ -84,7 +84,7 @@ int __init omap_init_vrfb(void)
84 pdev = platform_device_register_resndata(NULL, "omapvrfb", -1, 84 pdev = platform_device_register_resndata(NULL, "omapvrfb", -1,
85 res, num_res, NULL, 0); 85 res, num_res, NULL, 0);
86 86
87 return PTR_RET(pdev); 87 return PTR_ERR_OR_ZERO(pdev);
88} 88}
89#else 89#else
90int __init omap_init_vrfb(void) { return 0; } 90int __init omap_init_vrfb(void) { return 0; }
diff --git a/arch/arm/mach-omap2/pmu.c b/arch/arm/mach-omap2/pmu.c
index a69e9a33cb6d..d2adfebd3b3f 100644
--- a/arch/arm/mach-omap2/pmu.c
+++ b/arch/arm/mach-omap2/pmu.c
@@ -55,7 +55,7 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[])
55 WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", 55 WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n",
56 dev_name); 56 dev_name);
57 57
58 return PTR_RET(omap_pmu_dev); 58 return PTR_ERR_OR_ZERO(omap_pmu_dev);
59} 59}
60 60
61static int __init omap_init_pmu(void) 61static int __init omap_init_pmu(void)