mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
rockchip: spi: Convert to livetree
Update the Rockchip SPI driver to support a live device tree. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagan Teki <jagan@openedev.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
d2edb968c4
commit
d27c273908
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue