Skip to content
Commit 558ab2e8 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Bartosz Golaszewski
Browse files

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: 542c25b7 ("drivers: gpio: pxa: use devm_platform_ioremap_resource()")
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent e6862430
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment