From: Philipp Tomsich Date: Mon, 11 Sep 2017 20:04:20 +0000 (+0200) Subject: rockchip: spi: Convert to livetree X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=d27c273908c3ca534093e93d7730fc55973a02bc;p=u-boot.git rockchip: spi: Convert to livetree Update the Rockchip SPI driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Jagan Teki Acked-by: Philipp Tomsich --- diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index c70d636277..b18db74e7e 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -184,7 +184,7 @@ static int rockchip_spi_ofdata_to_platdata(struct udevice *bus) struct rockchip_spi_priv *priv = dev_get_priv(bus); int ret; - plat->base = devfdt_get_addr(bus); + plat->base = dev_read_addr(bus); ret = clk_get_by_index(bus, 0, &priv->clk); if (ret < 0) {