rt2x00: remove MCU requests for SoC platforms
authorLuis Correia <luis.f.correia@gmail.com>
Sat, 3 Apr 2010 11:49:53 +0000 (12:49 +0100)
committerGertjan van Wingerde <gwingerde@gmail.com>
Sat, 3 Apr 2010 14:04:11 +0000 (16:04 +0200)
The ralink SoC platforms do not have an MCU.

Signed-off-by: Luis Correia <luis.f.correia@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
drivers/net/wireless/rt2x00/rt2800pci.c

index ce7e88ecbb0023fdd8ebbd704e8dbcf6e2756d93..1df2d44a61583cb408f777d0c513fdda51b10021 100644 (file)
@@ -60,6 +60,12 @@ static void rt2800pci_mcu_status(struct rt2x00_dev *rt2x00dev, const u8 token)
        unsigned int i;
        u32 reg;
 
+       /*
+        * SOC devices don't support MCU requests.
+        */
+       if (rt2x00_is_soc(rt2x00dev))
+               return;
+
        for (i = 0; i < 200; i++) {
                rt2800_register_read(rt2x00dev, H2M_MAILBOX_CID, &reg);