mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-27 01:59:18 +07:00
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:
parent
92cc1d2252
commit
d934a88d50
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user