diff options
| -rw-r--r-- | drivers/gpio/gpiolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 8dfb54f92594..07b83a9e9821 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
| @@ -2131,13 +2131,13 @@ int gpiod_hog(struct gpio_desc *desc, const char *name, | |||
| 2131 | 2131 | ||
| 2132 | local_desc = gpiochip_request_own_desc(chip, hwnum, name); | 2132 | local_desc = gpiochip_request_own_desc(chip, hwnum, name); |
| 2133 | if (IS_ERR(local_desc)) { | 2133 | if (IS_ERR(local_desc)) { |
| 2134 | pr_debug("requesting own GPIO %s failed\n", name); | 2134 | pr_err("requesting own GPIO %s failed\n", name); |
| 2135 | return PTR_ERR(local_desc); | 2135 | return PTR_ERR(local_desc); |
| 2136 | } | 2136 | } |
| 2137 | 2137 | ||
| 2138 | status = gpiod_configure_flags(desc, name, lflags, dflags); | 2138 | status = gpiod_configure_flags(desc, name, lflags, dflags); |
| 2139 | if (status < 0) { | 2139 | if (status < 0) { |
| 2140 | pr_debug("setup of GPIO %s failed\n", name); | 2140 | pr_err("setup of GPIO %s failed\n", name); |
| 2141 | gpiochip_free_own_desc(desc); | 2141 | gpiochip_free_own_desc(desc); |
| 2142 | return status; | 2142 | return status; |
| 2143 | } | 2143 | } |
