summaryrefslogtreecommitdiff
path: root/target/linux/rb532/files/arch/mips/pci
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-11 10:42:06 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-11 10:42:06 +0000
commit9dd1cc458f802fc14461f2eff78fb9992ba73c0b (patch)
treed4bdb75621c44823d72ffa61a04c762262350b3a /target/linux/rb532/files/arch/mips/pci
parentaa00d4ee30c5a55834e891f77476489b539036b6 (diff)
Upgrade rb532 to .23, provide generic GPIO API to this board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10171 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rb532/files/arch/mips/pci')
-rw-r--r--target/linux/rb532/files/arch/mips/pci/fixup-rb500.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/rb532/files/arch/mips/pci/fixup-rb500.c b/target/linux/rb532/files/arch/mips/pci/fixup-rb500.c
index ceb53b0aa9..76c465fea4 100644
--- a/target/linux/rb532/files/arch/mips/pci/fixup-rb500.c
+++ b/target/linux/rb532/files/arch/mips/pci/fixup-rb500.c
@@ -24,12 +24,14 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <linux/autoconf.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/init.h>
+#include <asm/pci.h>
+#include <asm/io.h>
+
#include <asm/rc32434/rc32434.h>
static int __devinitdata irq_map[2][12] = {
@@ -37,7 +39,7 @@ static int __devinitdata irq_map[2][12] = {
{ 0, 0, 1, 3, 0, 2, 1, 3, 0, 2, 1, 3 }
};
-int __devinit pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
+int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int irq = 0;