]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/pci/probe.c
PCI: Convert to alloc_pci_dev()
[mirror_ubuntu-zesty-kernel.git] / drivers / pci / probe.c
index 70d37bbf09bb8399205a2d7a459ef81deb9eae4d..c659f8ae441acf57789bed7d9c1e6d73fc66355d 100644 (file)
@@ -900,7 +900,7 @@ pci_scan_device(struct pci_bus *bus, int devfn)
        if (pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type))
                return NULL;
 
-       dev = kzalloc(sizeof(struct pci_dev), GFP_KERNEL);
+       dev = alloc_pci_dev();
        if (!dev)
                return NULL;