summaryrefslogtreecommitdiffstats
path: root/include/linux/soc
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-02-11 23:32:32 +0100
committerLinus Walleij <linus.walleij@linaro.org>2022-02-12 18:20:03 +0100
commit8754a7e61c766fbc533c627b56ff181550dca00e (patch)
tree31bc3db80947e0531c7beb7bb9227e2910ca3e9b /include/linux/soc
parentb50113cbdd1340c31e85e4cfc5f5e81ce9cbb2aa (diff)
downloadlinux-8754a7e61c766fbc533c627b56ff181550dca00e.tar.gz
linux-8754a7e61c766fbc533c627b56ff181550dca00e.tar.bz2
linux-8754a7e61c766fbc533c627b56ff181550dca00e.zip
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>
Diffstat (limited to 'include/linux/soc')
-rw-r--r--include/linux/soc/ixp4xx/npe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/soc/ixp4xx/npe.h b/include/linux/soc/ixp4xx/npe.h
index 2a91f465d456..9efeac777da1 100644
--- a/include/linux/soc/ixp4xx/npe.h
+++ b/include/linux/soc/ixp4xx/npe.h
@@ -3,6 +3,7 @@
#define __IXP4XX_NPE_H
#include <linux/kernel.h>
+#include <linux/regmap.h>
extern const char *npe_names[];
@@ -17,6 +18,7 @@ struct npe_regs {
struct npe {
struct npe_regs __iomem *regs;
+ struct regmap *rmap;
int id;
int valid;
};