public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] mach-omap2: Remove use of deprecated marco, PTR_RET in devices.c
       [not found] <1432150346-31590-1-git-send-email-xerofoify@gmail.com>
@ 2015-05-20 20:55 ` Tony Lindgren
  0 siblings, 0 replies; only message in thread
From: Tony Lindgren @ 2015-05-20 20:55 UTC (permalink / raw)
  To: Nicholas Krause; +Cc: linux, linux-omap, linux-arm-kernel, linux-kernel

* Nicholas Krause <xerofoify@gmail.com> [150520 12:33]:
> This removes the deprecacted marco, PTR_RET and changes the
> functions that use this marco in their return statement to
> instead use the non deprecacted function, PTR_ERR_OR_ZERO
> for the file devices.c.
> 
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>

Applying into omap-for-v4.2/cleanup thanks.

Tony

> ---
>  arch/arm/mach-omap2/devices.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> index 990338f..a69bd67 100644
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -63,7 +63,7 @@ static int __init omap3_l3_init(void)
>  
>  	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(omap3_l3_init);
>  
> @@ -333,6 +333,6 @@ static int __init omap_gpmc_init(void)
>  	pdev = omap_device_build("omap-gpmc", -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);
> -- 
> 2.1.4
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-20 20:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1432150346-31590-1-git-send-email-xerofoify@gmail.com>
2015-05-20 20:55 ` [PATCH] mach-omap2: Remove use of deprecated marco, PTR_RET in devices.c Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox