diff options
author | Simon Glass | 2017-05-18 20:10:01 -0600 |
---|---|---|
committer | Simon Glass | 2017-06-01 07:03:17 -0600 |
commit | 04048d58a8fdc607010cb611d0656c4f6cae6296 (patch) | |
tree | b437d4e85e4a5c55e3e88ea9b3e92ca85adb6f26 /drivers/power/pmic/pm8916.c | |
parent | fe3c0b5b9306f957a6c25551a73ab8a70735699b (diff) |
dm: gpio: power: Convert pm8916 drivers to livetree
This PMIC driver (power and GPIO) is used by the sandbox SPMI tests.
Update the drivers to support a live device tree so that the tests pass.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/pmic/pm8916.c')
-rw-r--r-- | drivers/power/pmic/pm8916.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmic/pm8916.c b/drivers/power/pmic/pm8916.c index 3632ee2d1e2..a048bbe7ce1 100644 --- a/drivers/power/pmic/pm8916.c +++ b/drivers/power/pmic/pm8916.c @@ -70,7 +70,7 @@ static int pm8916_probe(struct udevice *dev) { struct pm8916_priv *priv = dev_get_priv(dev); - priv->usid = devfdt_get_addr(dev); + priv->usid = dev_read_addr(dev); if (priv->usid == FDT_ADDR_T_NONE) return -EINVAL; |