Re: [PATCH] ARM: ep93xx: Avoid soc_device_to_device()
From: Greg Kroah-Hartman
Date: Tue Nov 12 2019 - 00:36:24 EST
On Mon, Nov 11, 2019 at 11:37:22PM +0100, Andreas Färber wrote:
> ep93xx_init_soc() uses soc_device_to_device() to return a device
> to ep93xx_init_devices(), where it is passed on to its callers,
> who all ignore the return value. As this helper is deprecated,
> change the return type of ep93xx_init_devices() to void and
> have ep93xx_init_soc() return the soc_device instead.
>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Andreas Färber <afaerber@xxxxxxx>
> ---
> arch/arm/mach-ep93xx/core.c | 12 ++++--------
> arch/arm/mach-ep93xx/platform.h | 2 +-
> 2 files changed, 5 insertions(+), 9 deletions(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>