]> git.sur5r.net Git - u-boot/commitdiff
sandbox: phy: Update driver for livetree
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:09:48 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:15 +0000 (07:03 -0600)
Update the sandbox phy driver to support livetree.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/phy/sandbox-phy.c

index 9ad820c24c9dcc3179bcc2bb7725236160feb082..867c6fe7043bdd9466c671ed3dba44bc29f26de3 100644 (file)
@@ -80,8 +80,7 @@ static int sandbox_phy_probe(struct udevice *dev)
 
        priv->initialized = false;
        priv->on = false;
-       priv->broken = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev),
-                                      "broken");
+       priv->broken = dev_read_bool(dev, "broken");
 
        return 0;
 }