#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>
{
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 */