Skip to content

Commit

Permalink
[IA64] Fix incorrect return value from ia64_setup_msi_irq()
Browse files Browse the repository at this point in the history
Fix the problem that pci_enable_msi() fails on ia64 platform. The cause of
this problem is incorrect return value of ia64_setup_msi_irq(). It must
return 0 on success, instead of irq number.

Signed-off-by: Kenji Kaneshige <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
  • Loading branch information
kkaneshige authored and aegl committed Oct 30, 2007
1 parent 41f667f commit 3aff037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/kernel/msi_ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int ia64_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc)
write_msi_msg(irq, &msg);
set_irq_chip_and_handler(irq, &ia64_msi_chip, handle_edge_irq);

return irq;
return 0;
}

void ia64_teardown_msi_irq(unsigned int irq)
Expand Down

0 comments on commit 3aff037

Please sign in to comment.