diff options
| author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-07-02 18:32:47 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2019-07-04 03:41:02 -0400 |
| commit | c0ec7012385939d0c885c976c8849084d7aeb2fb (patch) | |
| tree | ab7a7dd3be869376b7edfd5655b809f38a6412b5 /drivers/gpio | |
| parent | bd791c48808a1f39a768a0096940d71e05bb0889 (diff) | |
gpio: stp-xway: get rid of the #include <lantiq_soc.h> dependency
Use the xway_stp_{r,w}32 helpers in xway_stp_w32_mask instead of relying
on ltq_{r,w}32 from the architecture specific <lantiq_soc.h>.
This will allow the driver to be compile-tested on all architectures
that support MMIO.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20190702223248.31934-4-martin.blumenstingl@googlemail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
| -rw-r--r-- | drivers/gpio/gpio-stp-xway.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c index cbdeba9144c1..d946d0ece14a 100644 --- a/drivers/gpio/gpio-stp-xway.c +++ b/drivers/gpio/gpio-stp-xway.c | |||
| @@ -18,8 +18,6 @@ | |||
| 18 | #include <linux/clk.h> | 18 | #include <linux/clk.h> |
| 19 | #include <linux/err.h> | 19 | #include <linux/err.h> |
| 20 | 20 | ||
| 21 | #include <lantiq_soc.h> | ||
| 22 | |||
| 23 | /* | 21 | /* |
| 24 | * The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a | 22 | * The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a |
| 25 | * peripheral controller used to drive external shift register cascades. At most | 23 | * peripheral controller used to drive external shift register cascades. At most |
| @@ -74,8 +72,7 @@ | |||
| 74 | #define xway_stp_r32(m, reg) __raw_readl(m + reg) | 72 | #define xway_stp_r32(m, reg) __raw_readl(m + reg) |
| 75 | #define xway_stp_w32(m, val, reg) __raw_writel(val, m + reg) | 73 | #define xway_stp_w32(m, val, reg) __raw_writel(val, m + reg) |
| 76 | #define xway_stp_w32_mask(m, clear, set, reg) \ | 74 | #define xway_stp_w32_mask(m, clear, set, reg) \ |
| 77 | ltq_w32((ltq_r32(m + reg) & ~(clear)) | (set), \ | 75 | xway_stp_w32(m, (xway_stp_r32(m, reg) & ~(clear)) | (set), reg) |
| 78 | m + reg) | ||
| 79 | 76 | ||
| 80 | struct xway_stp { | 77 | struct xway_stp { |
| 81 | struct gpio_chip gc; | 78 | struct gpio_chip gc; |
