[PATCH 2/2] powerpc: Use of_machine_compatible_match()

Rob Herring robh+dt at kernel.org
Tue Jul 31 00:14:51 AEST 2018


On Mon, Jul 30, 2018 at 7:15 AM Michael Ellerman <mpe at ellerman.id.au> wrote:
>
> Use of_machine_compatible_match() in platform code rather than open
> coding.

This is good because I want to get rid of of_root being used outside
of drivers/of/. Can you also convert this one:

drivers/clk/clk-qoriq.c:            of_device_is_compatible(of_root,
"fsl,ls1021a")) {

>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
>  arch/powerpc/platforms/40x/ppc40x_simple.c    | 2 +-
>  arch/powerpc/platforms/512x/mpc512x_generic.c | 2 +-
>  arch/powerpc/platforms/52xx/lite5200.c        | 2 +-
>  arch/powerpc/platforms/52xx/media5200.c       | 2 +-
>  arch/powerpc/platforms/52xx/mpc5200_simple.c  | 2 +-
>  arch/powerpc/platforms/83xx/mpc830x_rdb.c     | 2 +-
>  arch/powerpc/platforms/83xx/mpc831x_rdb.c     | 2 +-
>  arch/powerpc/platforms/83xx/mpc837x_rdb.c     | 2 +-
>  arch/powerpc/platforms/85xx/corenet_generic.c | 2 +-
>  arch/powerpc/platforms/85xx/tqm85xx.c         | 2 +-
>  10 files changed, 10 insertions(+), 10 deletions(-)

Acked-by: Rob Herring <robh at kernel.org>

Rob


More information about the Linuxppc-dev mailing list