[MIPS] TXx9: cleanup and fix some sparse warnings
[linux-2.6.git] / arch / mips / txx9 / generic / setup.c
index 517828e..5afc5d5 100644 (file)
@@ -140,7 +140,7 @@ void __init prom_init(void)
 
        strcpy(txx9_system_type, txx9_board_vec->system);
 
-       return txx9_board_vec->prom_init();
+       txx9_board_vec->prom_init();
 }
 
 void __init prom_free_prom_memory(void)
@@ -200,3 +200,13 @@ asmlinkage void plat_irq_dispatch(void)
        else
                spurious_interrupt();
 }
+
+/* see include/asm-mips/mach-tx39xx/mangle-port.h, for example. */
+#ifdef NEEDS_TXX9_SWIZZLE_ADDR_B
+static unsigned long __swizzle_addr_none(unsigned long port)
+{
+       return port;
+}
+unsigned long (*__swizzle_addr_b)(unsigned long port) = __swizzle_addr_none;
+EXPORT_SYMBOL(__swizzle_addr_b);
+#endif