diff options
author | Alban Bedel <albeu@free.fr> | 2016-01-28 20:44:30 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-10 11:08:31 +0100 |
commit | 409d87838d5755b471933fb2a43f2dfc514ccd2d (patch) | |
tree | 9ca034311f4b69d45be44efd3fbdb31292b7554e /drivers/gpio/gpio-ath79.c | |
parent | ab32770ec8d64254503d85128ba05de41d792ff2 (diff) | |
download | talos-obmc-linux-409d87838d5755b471933fb2a43f2dfc514ccd2d.tar.gz talos-obmc-linux-409d87838d5755b471933fb2a43f2dfc514ccd2d.zip |
gpio: ath79: Allow building in compile tests
To allow building the driver in compile tests we must drop the
dependency on asm/mach-ath79/ar71xx_regs.h. For this we replace the
include with local definition of the registers needed for this driver.
Signed-off-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ath79.c')
-rw-r--r-- | drivers/gpio/gpio-ath79.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c index 13d96480a3b2..afb535eef9f3 100644 --- a/drivers/gpio/gpio-ath79.c +++ b/drivers/gpio/gpio-ath79.c @@ -16,7 +16,10 @@ #include <linux/platform_data/gpio-ath79.h> #include <linux/of_device.h> -#include <asm/mach-ath79/ar71xx_regs.h> +#define AR71XX_GPIO_REG_OE 0x00 +#define AR71XX_GPIO_REG_IN 0x04 +#define AR71XX_GPIO_REG_SET 0x0c +#define AR71XX_GPIO_REG_CLEAR 0x10 struct ath79_gpio_ctrl { struct gpio_chip gc; |