X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fpci%2Fhotplug%2Ffakephp.c;h=027f6865d7e31cdbf1ce80711f076b66c24cbb8c;hb=06e5fda18491b5ab3419bddc36f3de5b4f7142a9;hp=e27907c91d9232ab99e7fd8261d1983c19f71680;hpb=17e6c600b2bc4f15dd5f9144ccb8b5c5211dd6e4;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;