UPSTREAM: rockchip: gpio: convert to livetree
Update the Rockchip GPIO-bank driver to support a live tree. Change-Id: Ic6aae620739fade81d512a070562f7978b648d6d Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit a1d3480bc63103f6215925b9447512e933cc4f1a)
This commit is contained in:
parent
e2186db8e7
commit
55efd69c9e
|
|
@ -104,7 +104,7 @@ static int rockchip_gpio_probe(struct udevice *dev)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* This only supports RK3288 at present */
|
/* This only supports RK3288 at present */
|
||||||
priv->regs = (struct rockchip_gpio_regs *)devfdt_get_addr(dev);
|
priv->regs = dev_read_addr_ptr(dev);
|
||||||
ret = uclass_first_device_err(UCLASS_PINCTRL, &priv->pinctrl);
|
ret = uclass_first_device_err(UCLASS_PINCTRL, &priv->pinctrl);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue