]> git.ipfire.org Git - thirdparty/linux.git/commit
ARM: ixp4xx: Turn the QMGR into a platform device
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 10 Feb 2019 16:14:10 +0000 (17:14 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Apr 2019 14:02:15 +0000 (16:02 +0200)
commit81bca32fcc75ededc51274d11f593a22a027236c
tree4c47b83517e323ee3b70a9f6ae4d7f4c8b6dc998
parentbc4d7eafb7ad590f546b58c40cd7856990fbb303
ARM: ixp4xx: Turn the QMGR into a platform device

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

Put the device second 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-qmgr.c