ARM: ixp4xx: Turn the NPE into a platform device
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 10 Feb 2019 16:05:29 +0000 (17:05 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Apr 2019 14:02:15 +0000 (16:02 +0200)
commitbc4d7eafb7ad590f546b58c40cd7856990fbb303
tree2538b36b5190f5ac7def7e62da0c004a24c99664
parent4af20dc583b364fad45df6fb81873606af8b70fb
ARM: ixp4xx: Turn the NPE into a platform device

Instead of registering everything related to the NPE
unconditionally in the module_init() call (which will
never work with multiplatform) create a platform device
and probe the NPE like any other device.

Put the device first in the list of devices added for
the platform so it is there when the dependent network
and crypto drivers probe later on.

This probe() path will not be taken unconditionally on
device tree boots, so remove the DT guard.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ixp4xx/common.c
drivers/soc/ixp4xx/ixp4xx-npe.c