sandbox: phy: Update driver for livetree

Update the sandbox phy driver to support livetree.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2017-05-18 20:09:48 -06:00
parent 23558bb67a
commit 5204e9b86b

View 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;
}