* [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c
@ 2015-05-18 14:07 Nicholas Krause
2015-05-20 18:07 ` [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco,PTR_RET in the files,fb.c " Tony Lindgren
0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Krause @ 2015-05-18 14:07 UTC (permalink / raw)
To: linux-arm-kernel
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>
---
arch/arm/mach-omap2/fb.c | 2 +-
arch/arm/mach-omap2/pmu.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/fb.c b/arch/arm/mach-omap2/fb.c
index 26e28e9..1f1ecf8 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)
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; }
diff --git a/arch/arm/mach-omap2/pmu.c b/arch/arm/mach-omap2/pmu.c
index a69e9a3..d2adfeb 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[])
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)
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco,PTR_RET in the files,fb.c and pmu.c
2015-05-18 14:07 [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c Nicholas Krause
@ 2015-05-20 18:07 ` Tony Lindgren
2015-05-20 18:10 ` [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c " Nicholas Krause
0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2015-05-20 18:07 UTC (permalink / raw)
To: linux-arm-kernel
* Nicholas Krause <xerofoify@gmail.com> [150518 07:09]:
> 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.
I've applied the original version today as they seem to be
the same.
Thanks,
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c
2015-05-20 18:07 ` [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco,PTR_RET in the files,fb.c " Tony Lindgren
@ 2015-05-20 18:10 ` Nicholas Krause
0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Krause @ 2015-05-20 18:10 UTC (permalink / raw)
To: linux-arm-kernel
On May 20, 2015 2:07:03 PM EDT, Tony Lindgren <tony@atomide.com> wrote:
>* Nicholas Krause <xerofoify@gmail.com> [150518 07:09]:
>> 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.
>
>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
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-20 18:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 14:07 [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c and pmu.c Nicholas Krause
2015-05-20 18:07 ` [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco,PTR_RET in the files,fb.c " Tony Lindgren
2015-05-20 18:10 ` [PATCH RESEND] mach-omap2:Remove calls to deprecacted marco, PTR_RET in the files, fb.c " Nicholas Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).