aboutsummaryrefslogtreecommitdiff
path: root/cmd/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/pci.c')
-rw-r--r--cmd/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/pci.c b/cmd/pci.c
index f91a4eb8ed..2295cc5e8e 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -339,9 +339,9 @@ static void pciinfo(struct udevice *bus, bool short_listing)
for (device_find_first_child(bus, &dev);
dev;
device_find_next_child(&dev)) {
- struct pci_child_platdata *pplat;
+ struct pci_child_plat *pplat;
- pplat = dev_get_parent_platdata(dev);
+ pplat = dev_get_parent_plat(dev);
if (short_listing) {
printf("%02x.%02x.%02x ", bus->seq,
PCI_DEV(pplat->devfn), PCI_FUNC(pplat->devfn));