From: David S. Miller Date: Thu, 10 May 2007 09:16:27 +0000 (-0700) Subject: [SPARC64]: Use alloc_pci_dev() in PCI bus probes. X-Git-Tag: v2.6.22-rc1~109^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26e6385f14b991e30450daee4348cbbc4bc4bb09;p=linux-2.6 [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 --- diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index d85e1ed7c3..cf9a75112d 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;