diff options
author | Tom Rini <trini@konsulko.com> | 2017-02-08 21:24:44 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-02-08 21:24:44 (GMT) |
commit | 21342d4aed6c77a4aa7a5b2579b3c23e21aea31a (patch) | |
tree | 279c781bdcbe697257ff86714fa0355bcd92fd19 /drivers/pinctrl/nxp | |
parent | 7582ddce132390fba10822c5977cd1ab532bb1eb (diff) | |
parent | f11a0af713a714ee2efcd810dd81c6dfd59381aa (diff) | |
download | u-boot-fsl-qoriq-21342d4aed6c77a4aa7a5b2579b3c23e21aea31a.tar.xz |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/pinctrl/nxp')
-rw-r--r-- | drivers/pinctrl/nxp/pinctrl-imx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 949d0f3..e130faf 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -19,7 +19,7 @@ static int imx_pinctrl_set_state(struct udevice *dev, struct udevice *config) { struct imx_pinctrl_priv *priv = dev_get_priv(dev); struct imx_pinctrl_soc_info *info = priv->info; - int node = config->of_offset; + int node = dev_of_offset(config); const struct fdt_property *prop; u32 *pin_data; int npins, size, pin_size; @@ -176,7 +176,7 @@ int imx_pinctrl_probe(struct udevice *dev, struct imx_pinctrl_soc_info *info) { struct imx_pinctrl_priv *priv = dev_get_priv(dev); - int node = dev->of_offset, ret; + int node = dev_of_offset(dev), ret; struct fdtdec_phandle_args arg; fdt_addr_t addr; fdt_size_t size; @@ -189,7 +189,8 @@ int imx_pinctrl_probe(struct udevice *dev, priv->dev = dev; priv->info = info; - addr = fdtdec_get_addr_size(gd->fdt_blob, dev->of_offset, "reg", &size); + addr = fdtdec_get_addr_size(gd->fdt_blob, dev_of_offset(dev), "reg", + &size); if (addr == FDT_ADDR_T_NONE) return -EINVAL; |