diff mbox

[U-Boot,v3,58/72] sandbox: phy: Update driver for livetree

Message ID 20170519021002.1098-59-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass May 19, 2017, 2:09 a.m. UTC
Update the sandbox phy driver to support livetree.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3: None
Changes in v2: None

 drivers/phy/sandbox-phy.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Simon Glass May 25, 2017, 12:06 a.m. UTC | #1
Update the sandbox phy driver to support livetree.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3: None
Changes in v2: None

 drivers/phy/sandbox-phy.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied to u-boot-dm
diff mbox

Patch

diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c
index 9ad820c24c..867c6fe704 100644
--- a/drivers/phy/sandbox-phy.c
+++ b/drivers/phy/sandbox-phy.c
@@ -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;
 }