summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c')
-rw-r--r--target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c b/target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c
index 9040a43ec..166fa1cf9 100644
--- a/target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c
+++ b/target/linux/atheros/files/arch/mips/atheros/ar5315/pci.c
@@ -22,6 +22,7 @@
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/irq.h>
+#include <asm/bootinfo.h>
#include <asm/paccess.h>
#include <asm/irq_cpu.h>
#include <asm/io.h>
@@ -186,6 +187,9 @@ int __init ar5315_pci_init(void)
{
u32 reg;
+ if (mips_machtype != MACH_ATHEROS_AR2315)
+ return -ENODEV;
+
printk("AR531x PCI init... \n");
cfgaddr = (u32) ioremap_nocache(0x80000000, 1*1024*1024); /* Remap PCI config space */