Skip to content

Commit

Permalink
[SPARC64]: Use alloc_pci_dev() in PCI bus probes.
Browse files Browse the repository at this point in the history
Otherwise MSI explodes because pci_msi_init_pci_dev() does not
get invoked.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 10, 2007
1 parent 9245df0 commit 26e6385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 26e6385

Please sign in to comment.