summaryrefslogtreecommitdiff
path: root/drivers/spi/cf_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/cf_spi.c')
-rw-r--r--drivers/spi/cf_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c
index 8adff63edc..298f350ef3 100644
--- a/drivers/spi/cf_spi.c
+++ b/drivers/spi/cf_spi.c
@@ -387,7 +387,7 @@ static int coldfire_spi_probe(struct udevice *bus)
static int coldfire_dspi_of_to_plat(struct udevice *bus)
{
fdt_addr_t addr;
- struct coldfire_spi_plat *plat = bus->plat;
+ struct coldfire_spi_plat *plat = dev_get_plat(bus);
const void *blob = gd->fdt_blob;
int node = dev_of_offset(bus);
int *ctar, len;