ar71xx: mach-rbspi: fix 74x164 support
authorThibaut VARENE <hacks@slashdirt.org>
Wed, 1 Nov 2017 11:06:20 +0000 (12:06 +0100)
committerMathias Kresin <dev@kresin.me>
Fri, 3 Nov 2017 19:04:51 +0000 (20:04 +0100)
commitdfa29309887287d9f5bc9ef9748786525ad7ccee
treed2bfd47fb720a89f3aefa6d21370410f420a7e42
parent189433e543747b1f2191b38f9ffd397de268ceb7
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>
target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c