diff options
author | Thibaut VARENE <hacks@slashdirt.org> | 2017-11-01 12:06:20 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-11-03 20:04:51 +0100 |
commit | dfa29309887287d9f5bc9ef9748786525ad7ccee (patch) | |
tree | d2bfd47fb720a89f3aefa6d21370410f420a7e42 /target/linux/ar71xx/files | |
parent | 189433e543747b1f2191b38f9ffd397de268ceb7 (diff) | |
download | upstream-dfa29309887287d9f5bc9ef9748786525ad7ccee.tar.gz upstream-dfa29309887287d9f5bc9ef9748786525ad7ccee.tar.bz2 upstream-dfa29309887287d9f5bc9ef9748786525ad7ccee.zip |
ar71xx: mach-rbspi: fix 74x164 support
The platform data was missing the num_registers element which is now
mandatory in linux 4.9
Without this patch, the gpio probing would fail with:
gpio gpiochip1: (74x164): tried to insert a GPIO chip with zero lines
Fixes: #1106
Tested-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c index 4cdc171de1..1045dfc6e7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c @@ -488,6 +488,7 @@ static struct gpio_keys_button rblhg_gpio_keys[] __initdata = { static struct gen_74x164_chip_platform_data rbspi_ssr_data = { .base = RBSPI_SSR_GPIO_BASE, + .num_registers = 1, }; /* the spi-ath79 driver can only natively handle CS0. Other CS are bit-banged */ |