diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-05-10 02:16:27 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-05-10 02:16:27 -0700 |
commit | 26e6385f14b991e30450daee4348cbbc4bc4bb09 (patch) | |
tree | 6c102bd4e6d8a2d96769c2992a42426912c7e176 | |
parent | 9245df0cd385419f9cdd83512feb80bbb719417e (diff) | |
download | linux-stable-26e6385f14b991e30450daee4348cbbc4bc4bb09.tar.gz linux-stable-26e6385f14b991e30450daee4348cbbc4bc4bb09.tar.bz2 linux-stable-26e6385f14b991e30450daee4348cbbc4bc4bb09.zip |
[SPARC64]: Use alloc_pci_dev() in PCI bus probes.
Otherwise MSI explodes because pci_msi_init_pci_dev() does not
get invoked.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc64/kernel/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index d85e1ed7c3e4..cf9a75112d0f 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c @@ -377,7 +377,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, const char *type; u32 class; - dev = kzalloc(sizeof(struct pci_dev), GFP_KERNEL); + dev = alloc_pci_dev(); if (!dev) return NULL; |