staging: brcm80211: remove MIPS specific 'sync' instruction in fullmac
authorRoland Vossen <rvossen@broadcom.com>
Mon, 8 Aug 2011 13:58:23 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:00:02 +0000 (13:00 -0700)
This instruction was required for the bcm4716/bcm4322, but since the
fullmac driver only supports bcm4329, it could be removed. After that,
the R_REG macro's were identical and thus were reduced to just 1 R_REG
macro.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c

index 8cb34d6734826acce3073cdaf31aa30dcb45cc90..8224ba49fd2fe93fcf14a49d2043e7aada22eb6a 100644 (file)
 #include "sdio_host.h"
 
 /* register access macros */
-#ifndef __BIG_ENDIAN
-#ifndef __mips__
 #define R_REG(r, typ) \
        brcmf_sdcard_reg_read(NULL, (r), sizeof(typ))
-#else                          /* __mips__ */
-#define R_REG(r, typ) \
-       ({ \
-               __typeof(*(r)) __osl_v; \
-               __asm__ __volatile__("sync"); \
-               __osl_v = brcmf_sdcard_reg_read(NULL, (r),\
-                                         sizeof(typ)); \
-               __asm__ __volatile__("sync"); \
-               __osl_v; \
-       })
-#endif                         /* __mips__ */
-
-#else                          /* __BIG_ENDIAN */
-#define R_REG(r, typ) \
-       brcmf_sdcard_reg_read(NULL, (r), sizeof(typ))
-#endif                         /* __BIG_ENDIAN */
 
 #define OR_REG(r, v, typ) \
        brcmf_sdcard_reg_write(NULL, (r), sizeof(typ), R_REG(r, typ) | (v))