intsrc = ADM5120_INTC_STATUS & ADM5120_IRQ_MASK;
- for (i = 0; intsrc; intsrc >>= 1, i++)
- if (intsrc & 0x1)
- do_IRQ(i);
- else
- spurious_interrupt();
+ if (intsrc) {
+ for (i = 0; intsrc; intsrc >>= 1, i++)
+ if (intsrc & 0x1)
+ do_IRQ(i);
+ } else
+ spurious_interrupt();
}
void mips_timer_interrupt(struct pt_regs *regs)
#include <asm-mips/mips-boards/prom.h>
extern char *prom_getenv(char *envname);
+void prom_printf(char *, ...);
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
return adm5120_board_name();
}
+#ifdef CONFIG_USB
static struct resource adm5120_hcd_resources[] = {
[0] = {
.start = 0x11200000,
return platform_add_devices(devices, ARRAY_SIZE(devices));
}
-subsys_initcall(adm5120_init);
+arch_initcall(adm5120_init);
+#endif