PCI: Convert to alloc_pci_dev()
Convert code that allocs a struct pci_dev to use alloc_pci_dev(). Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
65891215e6
commit
bab41e9be7
@@ -238,7 +238,7 @@ static void pci_rescan_bus(const struct pci_bus *bus)
|
||||
{
|
||||
unsigned int devfn;
|
||||
struct pci_dev *dev;
|
||||
dev = kzalloc(sizeof(struct pci_dev), GFP_KERNEL);
|
||||
dev = alloc_pci_dev();
|
||||
if (!dev)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user