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>
}
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);