]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pxa: Fix return value of pxa_gpio_probe()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 22 May 2020 04:12:19 +0000 (12:12 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 25 May 2020 09:14:36 +0000 (11:14 +0200)
commitc7eda439161acb16d6223a2ba19601acd829055d
tree38caa4c44ef4119e3808681aaa4be515ab67214f
parente3673c070261d2fb1fd3cc087e51a32da16f793d
gpio: pxa: Fix return value of pxa_gpio_probe()

When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Fixes: 17634675f9c8 ("drivers: gpio: pxa: use devm_platform_ioremap_resource()")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pxa.c