gpiolib: Fix error return code in gpiolib_dev_init()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 4731210c ("gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default") Reported-by: NHulk Robot <hulkci@huawei.com> Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com> Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
Showing
想要评论请 注册 或 登录