]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: bcm-kona: Fix return value of bcm_kona_gpio_probe()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 22 May 2020 04:12:18 +0000 (12:12 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 25 May 2020 09:17:18 +0000 (11:17 +0200)
commit7d41327eef9a53e011b704531fd263d35cd36a5b
tree6a6aa17d51f74d91a513abd473d7c73b80b5b0c4
parentc7eda439161acb16d6223a2ba19601acd829055d
gpio: bcm-kona: Fix return value of bcm_kona_gpio_probe()

Propagate the error code returned by devm_platform_ioremap_resource()
out of probe() instead of overwriting it.

Fixes: e1f18957cfbd ("drivers: gpio: bcm-kona: use devm_platform_ioremap_resource()")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-bcm-kona.c