Merge tag 'efi-2021-04-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[pandora-u-boot.git] / drivers / pci / pci_octeontx.c
index 3053754..46855c5 100644 (file)
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <pci.h>
+#include <asm/global_data.h>
 
 #include <asm/io.h>
 
@@ -311,7 +312,7 @@ int pci_octeontx_write_config(struct udevice *bus, pci_dev_t bdf,
        return ret;
 }
 
-static int pci_octeontx_ofdata_to_platdata(struct udevice *dev)
+static int pci_octeontx_of_to_plat(struct udevice *dev)
 {
        return 0;
 }
@@ -357,8 +358,8 @@ U_BOOT_DRIVER(pci_octeontx) = {
        .id     = UCLASS_PCI,
        .of_match = pci_octeontx_ids,
        .ops    = &pci_octeontx_ops,
-       .ofdata_to_platdata = pci_octeontx_ofdata_to_platdata,
+       .of_to_plat = pci_octeontx_of_to_plat,
        .probe  = pci_octeontx_probe,
-       .priv_auto_alloc_size = sizeof(struct octeontx_pci),
+       .priv_auto      = sizeof(struct octeontx_pci),
        .flags = DM_FLAG_PRE_RELOC,
 };