Skip to content
Commit c1bcb976 authored by 蒋家盛's avatar 蒋家盛 Committed by Bartosz Golaszewski
Browse files

gpio: sifive: add missing check for platform_get_irq

Add the missing check for platform_get_irq() and return error code
if it fails.

The returned error code will be dealed with in
builtin_platform_driver(sifive_gpio_driver) and the driver will not
be registered.

Fixes: f52d6d8b

 ("gpio: sifive: To get gpio irq offset from device tree data")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 8c00914e
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