Skip to content

Commit

Permalink
[ARM] pci: provide dummy pci_get_legacy_ide_irq()
Browse files Browse the repository at this point in the history
This fixes footbridge_defconfig:

drivers/pnp/resource.c: In function 'pci_dev_uses_irq':
drivers/pnp/resource.c:317: error: implicit declaration of function 'pci_get_legacy_ide_irq'

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jul 26, 2008
1 parent 0c65f45 commit dd438e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/asm-arm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ pcibios_select_root(struct pci_dev *pdev, struct resource *res)
return root;
}

/*
* Dummy implementation; always return 0.
*/
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
{
return 0;
}

#endif /* __KERNEL__ */

#endif

0 comments on commit dd438e7

Please sign in to comment.