soc: ixp4xx-npe: Access syscon regs using regmap
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Feb 2022 22:32:32 +0000 (23:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 12 Feb 2022 17:20:03 +0000 (18:20 +0100)
commit8754a7e61c766fbc533c627b56ff181550dca00e
tree31bc3db80947e0531c7beb7bb9227e2910ca3e9b
parentb50113cbdd1340c31e85e4cfc5f5e81ce9cbb2aa
soc: ixp4xx-npe: Access syscon regs using regmap

If we access the syscon (expansion bus config registers) using the
syscon regmap instead of relying on direct accessor functions,
we do not need to call this static code in the machine
(arch/arm/mach-ixp4xx/common.c) which makes things less dependent
on custom machine-dependent code.

Look up the syscon regmap and handle the error: this will make
deferred probe work with relation to the syscon.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220211223238.648934-8-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/soc/ixp4xx/Kconfig
drivers/soc/ixp4xx/ixp4xx-npe.c
include/linux/soc/ixp4xx/npe.h