diff options
author | Simon Glass <sjg@chromium.org> | 2017-07-25 08:30:00 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-28 12:02:47 -0600 |
commit | 000f15fa15c57d2d2f5a1a1d2ea233edbff6461e (patch) | |
tree | 513ea1a9c8f4a49b24ae90e7f1b3add7140d1a49 /drivers/spi/tegra114_spi.c | |
parent | be7890927a0f9fd40e697ed857cba8c2de1d178e (diff) | |
download | u-boot-000f15fa15c57d2d2f5a1a1d2ea233edbff6461e.zip u-boot-000f15fa15c57d2d2f5a1a1d2ea233edbff6461e.tar.gz u-boot-000f15fa15c57d2d2f5a1a1d2ea233edbff6461e.tar.bz2 |
dm: tegra: Convert clock_decode_periph_id() to support livetree
Adjust this to take a device as a parameter instead of a node.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/spi/tegra114_spi.c')
-rw-r--r-- | drivers/spi/tegra114_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index 9165934..6478352 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -104,7 +104,7 @@ static int tegra114_spi_ofdata_to_platdata(struct udevice *bus) int node = dev_of_offset(bus); plat->base = devfdt_get_addr(bus); - plat->periph_id = clock_decode_periph_id(blob, node); + plat->periph_id = clock_decode_periph_id(bus); if (plat->periph_id == PERIPH_ID_NONE) { debug("%s: could not decode periph id %d\n", __func__, |