gpio: omap_gpio: Fix unused function warning in non-DM case
authorTom Rini <trini@konsulko.com>
Thu, 4 Jun 2020 20:01:39 +0000 (16:01 -0400)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 16 Jun 2020 11:30:02 +0000 (17:00 +0530)
commita37f765219870e4cb4ed9590dff77ed8a380a462
treec1fda9d5dd4c78cee5cc2dfb5efb624508b60c7c
parentf18f823c130cbfeb3124c1d62baad857fc0e8d77
gpio: omap_gpio: Fix unused function warning in non-DM case

In the case of non-DM_GPIO the function get_gpio_index() will never be
called, and clang will warn about this.  Move this to be with the other
non-DM code for easier removal later.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/gpio/omap_gpio.c