summaryrefslogtreecommitdiff
path: root/drivers/power/pmic/pm8916.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-18 20:10:01 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:17 -0600
commit04048d58a8fdc607010cb611d0656c4f6cae6296 (patch)
treeb437d4e85e4a5c55e3e88ea9b3e92ca85adb6f26 /drivers/power/pmic/pm8916.c
parentfe3c0b5b9306f957a6c25551a73ab8a70735699b (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmic/pm8916.c b/drivers/power/pmic/pm8916.c
index 3632ee2d1e..a048bbe7ce 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;