gpio: xra1403: Switch to a fixed upper bound for registers
authorLaura Abbott <labbott@redhat.com>
Mon, 9 Apr 2018 21:07:17 +0000 (14:07 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Apr 2018 23:06:21 +0000 (01:06 +0200)
commit12f92ccc5baeb99e2f1d3ea9ae2e35441a56a100
tree49f5de1f92e08ae5ceae85c109420bfb1c05b709
parent60cc43fc888428bb2f18f08997432d426a243338
gpio: xra1403: Switch to a fixed upper bound for registers

Geert Uytterhoeven pointed out that the number of register was a
fixed upper bound so there's no need to use a dynamically allocated
array in place of a VLA. Use the defined upper bound.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xra1403.c