]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit592d594e1f8dc04dbd469f809102b85839fcdf09
tree2538b36b5190f5ac7def7e62da0c004a24c99664
parent73b5bc314c5d71b6a9f19a3ba1b88675fca723df
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