UPSTREAM: 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:Hulk Robot <hulkci@huawei.com> Signed-off-by:
Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by:
Bartosz Golaszewski <bgolaszewski@baylibre.com> (cherry picked from commit 3875721e) Bug: 187129171 Signed-off-by:
Connor O'Brien <connoro@google.com> Change-Id: Ib4baa8a2e1952468f971dfb6fbdfefd827275519
Loading
Please sign in to comment