]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: omap: avoid clang warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 7 Mar 2019 10:33:32 +0000 (11:33 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Apr 2019 17:04:28 +0000 (00:04 +0700)
commit7c68571f77fbc1d2a6ed70dbc9b2c0782d282d43
tree0ad87e1fdc812661a843f935244403f8d1e886b0
parent430c1ce304e4e190a89b065aa75d7a0ea725560b
gpio: omap: avoid clang warning

clang warns about a tentative array definition in the gpio-omap driver:

drivers/gpio/gpio-omap.c:1282:34: error: tentative array definition assumed to have one element [-Werror]
static const struct of_device_id omap_gpio_match[];

It's best to just reorder the entire file to avoid forward declarations,
which lets us use the regular declaration. To do this, the unnecessary
CONFIG_OF check must also be removed.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c