diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-04-05 09:19:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-05-03 04:02:37 +0200 |
commit | bab41e9be75121c473b00df2ffa33af3c44066a7 (patch) | |
tree | cd519c2a32c951914ec7e7f909ae3822313f594c /drivers/pci/hotplug | |
parent | PCI: Create alloc_pci_dev(), the one true way to create a struct pci_dev (diff) | |
download | linux-bab41e9be75121c473b00df2ffa33af3c44066a7.tar.xz linux-bab41e9be75121c473b00df2ffa33af3c44066a7.zip |
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>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/fakephp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/fakephp.c b/drivers/pci/hotplug/fakephp.c index e27907c91d92..027f6865d7e3 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; |