]> err.no Git - linux-2.6/commit
PCI: Create alloc_pci_dev(), the one true way to create a struct pci_dev
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 5 Apr 2007 07:19:08 +0000 (17:19 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 02:02:37 +0000 (19:02 -0700)
commit65891215e6b822c368fb3f36abf129ed48af8be0
tree6cc1de94ca66a8f627775d1ddff3600ee8236ed3
parentc9953a73e92df11edd812d863ff741877ea9e58c
PCI: Create alloc_pci_dev(), the one true way to create a struct pci_dev

There are currently several places in the kernel where we kmalloc()
a struct pci_dev and start initialising it. It'd be preferable to
have an allocator so we can ensure the pci_dev is correctly initialised
in one place.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/probe.c
include/linux/pci.h