Commit d934a88d authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: db3-platform: fix code that fetches reset GPIO

The code that fetches the reset GPIO for an AP bridge suffers
from an apparent copy/paste error.  Fix it.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 92cc1d22
...@@ -196,10 +196,10 @@ static int apb_ctrl_get_devtree_data(struct device *dev, ...@@ -196,10 +196,10 @@ static int apb_ctrl_get_devtree_data(struct device *dev,
} }
apb_data->ctrl.reset = of_get_named_gpio(np, "reset-gpios", 0); apb_data->ctrl.reset = of_get_named_gpio(np, "reset-gpios", 0);
if (apb_data->ctrl.wake_detect < 0 || if (apb_data->ctrl.reset < 0 ||
!gpio_is_valid(apb_data->ctrl.reset)) { !gpio_is_valid(apb_data->ctrl.reset)) {
dev_err(dev, "failed to get wake detect gpio\n"); dev_err(dev, "failed to get reset gpio\n");
return apb_data->ctrl.wake_detect; return apb_data->ctrl.reset;
} }
apb_data->ctrl.boot_ret = of_get_named_gpio(np, "boot-ret-gpios", 0); apb_data->ctrl.boot_ret = of_get_named_gpio(np, "boot-ret-gpios", 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment