summaryrefslogtreecommitdiffstats
path: root/drivers/spi/atcspi200_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/atcspi200_spi.c')
-rw-r--r--drivers/spi/atcspi200_spi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c
index 39c6e226ba..0f05158c84 100644
--- a/drivers/spi/atcspi200_spi.c
+++ b/drivers/spi/atcspi200_spi.c
@@ -309,8 +309,8 @@ static int atcspi200_spi_set_mode(struct udevice *bus, uint mode)
static int atcspi200_spi_claim_bus(struct udevice *dev)
{
- struct dm_spi_slave_platdata *slave_plat =
- dev_get_parent_platdata(dev);
+ struct dm_spi_slave_plat *slave_plat =
+ dev_get_parent_plat(dev);
struct udevice *bus = dev->parent;
struct nds_spi_slave *ns = dev_get_priv(bus);
@@ -408,7 +408,7 @@ U_BOOT_DRIVER(atcspi200_spi) = {
.id = UCLASS_SPI,
.of_match = atcspi200_spi_ids,
.ops = &atcspi200_spi_ops,
- .ofdata_to_platdata = atcspi200_ofdata_to_platadata,
- .priv_auto_alloc_size = sizeof(struct nds_spi_slave),
+ .of_to_plat = atcspi200_ofdata_to_platadata,
+ .priv_auto = sizeof(struct nds_spi_slave),
.probe = atcspi200_spi_probe,
};