diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-07-09 16:56:03 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-07-13 09:05:06 +0200 |
commit | c29677312d2532f7a7d49623539e435df6d64d22 (patch) | |
tree | 7cec71da39fa5bda5d39b7b13aa65bb3f956a019 /drivers/gpio/Kconfig | |
parent | gpiolib: Consistent use of ->get_direction() inside gpiolib (diff) | |
download | linux-c29677312d2532f7a7d49623539e435df6d64d22.tar.xz linux-c29677312d2532f7a7d49623539e435df6d64d22.zip |
gpio: aspeed: fix compile testing warning
Gcc cannot always see that BUG_ON(1) is guaranteed to not
return, so we get a warning message in some configurations:
drivers/gpio/gpio-aspeed.c: In function 'bank_reg':
drivers/gpio/gpio-aspeed.c:244:1: error: control reaches end of non-void function [-Werror=return-type]
Using a plain BUG() is easier here and avoids the problem.
Fixes: 44ddf559d579 ("gpio: aspeed: Rework register type accessors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
0 files changed, 0 insertions, 0 deletions