gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()
authorMichal Simek <michal.simek@xilinx.com>
Mon, 23 Jul 2018 10:08:49 +0000 (12:08 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 7 Aug 2018 09:03:42 +0000 (11:03 +0200)
commitddd7b3fa33a01c469c920c249e97131ab8f28ada
tree4270491c557ccafe14e885fd27139adc9c049dea
parent2570e12960486cdf2b1e0e3fb8f6100116ccf65e
gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()

Call xilinx_gpio_get_bank_pin() before use.

Reported-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
drivers/gpio/xilinx_gpio.c