gpio: winbond: Fix error code in winbond_gpio_get()
This error path returns 1, but it should instead propagate the negative error code from winbond_sio_enter(). Fixes: a0d65009 ("gpio: winbond: Add driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Showing
Please register or sign in to comment