&uc_priv->sleep, GPIOD_IS_OUT);
if (ret) {
debug("%s: Could not decode sleep-gpios (%d)\n", __func__, ret);
- return ret;
+ if (ret != -ENOENT)
+ return ret;
}
/*
* Drop this for now as we do not have driver model pinctrl support
GPIOD_IS_OUT);
if (ret) {
debug("%s: Could not decode reset-gpios (%d)\n", __func__, ret);
- return ret;
+ if (ret != -ENOENT)
+ return ret;
}
/*
* Drop this for now as we do not have driver model pinctrl support
*/
ret = gpio_request_by_name(dev, "hotplug-gpios", 0, &uc_priv->hotplug,
GPIOD_IS_IN);
- if (ret && ret != -ENOENT) {
+ if (ret) {
debug("%s: Could not decode hotplug (%d)\n", __func__, ret);
- return ret;
+ if (ret != -ENOENT)
+ return ret;
}
return 0;