From: Simon Glass Date: Fri, 19 May 2017 02:09:48 +0000 (-0600) Subject: sandbox: phy: Update driver for livetree X-Git-Tag: v2017.07-rc1~110 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5204e9b86bbb5d7279f15e51683b6c9180ea1357;p=u-boot sandbox: phy: Update driver for livetree Update the sandbox phy driver to support livetree. Signed-off-by: Simon Glass --- 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; }