From: Philipp Tomsich Date: Mon, 11 Sep 2017 20:04:24 +0000 (+0200) Subject: rockchip: gpio: convert to livetree X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a1d3480bc63103f6215925b9447512e933cc4f1a;p=u-boot.git rockchip: gpio: convert to livetree Update the Rockchip GPIO-bank driver to support a live tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_gpio.c --- diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index 6f7366acba..a6b83b26a8 100644 --- a/drivers/gpio/rk_gpio.c +++ b/drivers/gpio/rk_gpio.c @@ -104,7 +104,7 @@ static int rockchip_gpio_probe(struct udevice *dev) int ret; /* 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); if (ret) return ret;