On Thursday 12 May 2016 05:36 PM, Kefeng Wang wrote:
> Use helper of_platform_default_populate() in linux/of_platform
> when possible, instead of calling of_platform_populate() with
> the default match table.
> 
> Cc: Nicolas Ferre <[email protected]>
> Cc: Krzysztof Halasa <[email protected]>
> Cc: Sekhar Nori <[email protected]>
> Cc: Shawn Guo <[email protected]>
> Cc: Russell King <[email protected]>
> Cc: Roland Stigge <[email protected]>
> Cc: Jason Cooper <[email protected]>
> Cc: Ray Jui <[email protected]>
> Cc: Viresh Kumar <[email protected]>
> Cc: Stephen Warren <[email protected]>
> Cc: Rob Herring <[email protected]>
> Cc: Michal Simek <[email protected]>
> Signed-off-by: Kefeng Wang <[email protected]>
> ---

> diff --git a/arch/arm/mach-davinci/da8xx-dt.c 
> b/arch/arm/mach-davinci/da8xx-dt.c
> index c4b5808..da46dc7 100644
> --- a/arch/arm/mach-davinci/da8xx-dt.c
> +++ b/arch/arm/mach-davinci/da8xx-dt.c
> @@ -54,8 +54,7 @@ static struct of_dev_auxdata da850_auxdata_lookup[] 
> __initdata = {
>  
>  static void __init da850_init_machine(void)
>  {
> -     of_platform_populate(NULL, of_default_bus_match_table,
> -                          da850_auxdata_lookup, NULL);
> +     of_platform_default_populate(NULL, da850_auxdata_lookup, NULL);
>  
>  }

The mach-davinci change is already queued for v4.7

Thanks,
Sekhar

Reply via email to