qoriq_gpio_pin_setflags: Propagate error from qoriq_gpio_pin_configure.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D34854
This commit is contained in:
John Baldwin 2022-04-18 12:28:09 -07:00
parent 540ac338d5
commit bc734377d9

View File

@ -153,7 +153,7 @@ qoriq_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags)
GPIO_LOCK(sc);
ret = qoriq_gpio_pin_configure(dev, pin, flags);
GPIO_UNLOCK(sc);
return (0);
return (ret);
}
static int