Commit 3875721
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: 4731210 ("gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>1 parent b41ba2e commit 3875721
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4256 | 4256 | | |
4257 | 4257 | | |
4258 | 4258 | | |
4259 | | - | |
| 4259 | + | |
| 4260 | + | |
4260 | 4261 | | |
4261 | 4262 | | |
4262 | 4263 | | |
| |||
0 commit comments