-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIPS] EV64120: Fix PCI interrupt allocation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Ralf Baechle
committed
Nov 6, 2006
1 parent
4a4cf77
commit 4e5852f
Showing
3 changed files
with
22 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <linux/pci.h> | ||
|
||
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
{ | ||
int irq; | ||
|
||
if (!pin) | ||
return 0; | ||
|
||
irq = allocate_irqno(); | ||
if (irq < 0) | ||
return 0; | ||
|
||
return irq; | ||
} | ||
|
||
/* Do platform specific device initialization at pci_enable_device() time */ | ||
int pcibios_plat_dev_init(struct pci_dev *dev) | ||
{ | ||
return 0; | ||
} |