diff options
author | Michal Simek <michal.simek@xilinx.com> | 2019-01-09 11:58:24 +0100 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2019-01-15 09:06:28 +0100 |
commit | 58dc4a99b7f55fa906f1f797c51fb63daccf8a6d (patch) | |
tree | c5afb700f274b2b02676d99a67cfa805e53872a4 /drivers/i2c/muxes/pca954x.c | |
parent | f48ef0d81aa837a33020f8d61abb3929ba613774 (diff) |
i2c: mux: Covert to livetree functions
Updates i2c muxes drivers to support livetree.
Similar changes were done by:
"net: zynq_gem: convert to use livetree"
(sha1: 26026e695afa794ac018a09e79a48120d322b60d)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/i2c/muxes/pca954x.c')
-rw-r--r-- | drivers/i2c/muxes/pca954x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index ab8b4000af..bd4e9abe5f 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -101,7 +101,7 @@ static int pca954x_ofdata_to_platdata(struct udevice *dev) struct pca954x_priv *priv = dev_get_priv(dev); const struct chip_desc *chip = &chips[dev_get_driver_data(dev)]; - priv->addr = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "reg", 0); + priv->addr = dev_read_u32_default(dev, "reg", 0); if (!priv->addr) { debug("MUX not found\n"); return -ENODEV; |