]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/pci/pci-uclass.c
dm: pci: Save devfn without bus number in pci_uclass_child_post_bind()
[karo-tx-uboot.git] / drivers / pci / pci-uclass.c
index c90e7ac8dd77cc55f375d827223c41e4ac28fa85..2d12344ae2713be17603fadc16dabd001d4b136c 100644 (file)
@@ -794,8 +794,8 @@ static int pci_uclass_child_post_bind(struct udevice *dev)
                if (ret != -ENOENT)
                        return -EINVAL;
        } else {
-               /* extract the bdf from fdt_pci_addr */
-               pplat->devfn = addr.phys_hi & 0xffff00;
+               /* extract the devfn from fdt_pci_addr */
+               pplat->devfn = addr.phys_hi & 0xff00;
        }
 
        return 0;