ar71xx: don't register 8250 UART on the AR933x SoCs
authorGabor Juhos <juhosg@openwrt.org>
Tue, 31 May 2011 22:53:31 +0000 (22:53 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 31 May 2011 22:53:31 +0000 (22:53 +0000)
SVN-Revision: 27058

target/linux/ar71xx/files/arch/mips/ar71xx/devices.c

index 86107ef3653f36c5976193c58b2437400aca670e..da1eaa2e5ff1a8c2f155ae5270d95cec0b0a5069 100644 (file)
@@ -71,6 +71,11 @@ void __init ar71xx_add_device_uart(void)
                ar71xx_uart_data[0].uartclk = ar71xx_ahb_freq;
                break;
 
+       case AR71XX_SOC_AR9330:
+       case AR71XX_SOC_AR9331:
+               /* These SoCs are using a different UART core */
+               return;
+
        case AR71XX_SOC_AR9341:
        case AR71XX_SOC_AR9342:
        case AR71XX_SOC_AR9344:
@@ -79,8 +84,8 @@ void __init ar71xx_add_device_uart(void)
 
        default:
                BUG();
-
        }
+
        platform_device_register(&ar71xx_uart_device);
 }