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: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Alex Elder 2015-10-22 08:58:16 -05:00 committed by Greg Kroah-Hartman
parent 92cc1d2252
commit d934a88d50

View File

@ -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);
if (apb_data->ctrl.wake_detect < 0 ||
if (apb_data->ctrl.reset < 0 ||
!gpio_is_valid(apb_data->ctrl.reset)) {
dev_err(dev, "failed to get wake detect gpio\n");
return apb_data->ctrl.wake_detect;
dev_err(dev, "failed to get reset gpio\n");
return apb_data->ctrl.reset;
}
apb_data->ctrl.boot_ret = of_get_named_gpio(np, "boot-ret-gpios", 0);