]> Git Repo - u-boot.git/blobdiff - drivers/spi/atcspi200_spi.c
common: Drop asm/global_data.h from common header
[u-boot.git] / drivers / spi / atcspi200_spi.c
index 39c6e226ba7548920081f1156486e96f03faa09b..634cd565610c98c2ba0c202192c81d23e862fa22 100644 (file)
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
 
@@ -309,8 +310,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 +409,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,
 };
This page took 0.025506 seconds and 4 git commands to generate.