diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-08 16:57:24 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-04-16 14:36:28 +0800 |
commit | 32e8ee004a3dad1a9cc06bd3ac44d8ba562afc3e (patch) | |
tree | 9002c802bbd751fdea0db4d7bbfc559742c474ce /drivers/tpm | |
parent | fe6831dac40bde3e2c764f451334072b6cbefb45 (diff) |
tpm: cr50: Use the correct GPIO binding
This device should use ready-gpios rather than ready-gpio. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/tpm')
-rw-r--r-- | drivers/tpm/cr50_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c index c1d2d2fa38..b67051af26 100644 --- a/drivers/tpm/cr50_i2c.c +++ b/drivers/tpm/cr50_i2c.c @@ -607,7 +607,7 @@ static int cr50_i2c_ofdata_to_platdata(struct udevice *dev) priv->irq = irq; priv->use_irq = true; } else { - ret = gpio_request_by_name(dev, "ready-gpio", 0, + ret = gpio_request_by_name(dev, "ready-gpios", 0, &priv->ready_gpio, GPIOD_IS_IN); if (ret) { log_warning("Cr50 does not have an ready GPIO/interrupt (err=%d)\n", |