X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fpci%2Fhotplug%2Ffakephp.c;h=027f6865d7e31cdbf1ce80711f076b66c24cbb8c;hb=36ed27b07b873db06c10d2f8f41aa17be6803fdd;hp=e27907c91d9232ab99e7fd8261d1983c19f71680;hpb=71fa0a849b384f066dea6a2351c722c19846f4ac;p=linux-2.6 diff --git a/drivers/pci/hotplug/fakephp.c b/drivers/pci/hotplug/fakephp.c index e27907c91d..027f6865d7 100644 --- a/drivers/pci/hotplug/fakephp.c +++ b/drivers/pci/hotplug/fakephp.c @@ -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;