From: Roland Vossen Date: Thu, 9 Jun 2011 14:44:50 +0000 (+0200) Subject: staging: brcm80211: fixed double #include problem X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c4daa849f3bf2b80cf16042311ca3377f145ca24;p=linux-beck.git staging: brcm80211: fixed double #include problem Code cleanup. Removed one redundant include and reshuffled #include order as to include Linux header files first. Reported-by: julie Sullivan Signed-off-by: Roland Vossen Reviewed-by: Franky Lin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh.c index b3bdd489a9fd..3d0c8e7e0213 100644 --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh.c +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh.c @@ -19,15 +19,14 @@ #include #include #include + #include #include #include #include #include - -#include /* common SDIO/controller interface */ -#include /* BRCM sdio device core */ - +#include "bcmsdbus.h" /* common SDIO/controller interface */ +#include "sbsdio.h" /* BRCM sdio device core */ #include "dngl_stats.h" #include "dhd.h" diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c index 66e204b60b63..b90d7d0764c5 100644 --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c @@ -16,22 +16,20 @@ #include #include #include -#include -#include -#include -#include -#include "sdio_host.h" -#include /* bcmsdh to/from specific controller APIs */ -#include /* ioctl/iovars */ - #include #include #include #include -#include -#include - +#include +#include +#include +#include +#include "sdio_host.h" +#include "bcmsdbus.h" /* bcmsdh to/from specific controller APIs */ +#include "sdiovar.h" /* ioctl/iovars */ +#include "dngl_stats.h" +#include "dhd.h" #include "bcmsdh_sdmmc.h" extern int sdio_function_init(void); diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c index 9fc491dff018..5f17b8fffd79 100644 --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c @@ -16,19 +16,18 @@ #include #include /* request_irq() */ #include -#include -#include -#include -#include -#include "sdio_host.h" -#include /* bcmsdh to/from specific controller APIs */ -#include /* to get msglevel bit values */ - #include #include #include #include +#include +#include +#include +#include +#include "sdio_host.h" +#include "bcmsdbus.h" /* bcmsdh to/from specific controller APIs */ +#include "sdiovar.h" /* to get msglevel bit values */ #include "dngl_stats.h" #include "dhd.h" @@ -53,8 +52,8 @@ #include -#include -#include +#include "dhd_dbg.h" +#include "wl_cfg80211.h" extern void sdioh_sdmmc_devintr_off(sdioh_info_t *sd); extern void sdioh_sdmmc_devintr_on(sdioh_info_t *sd); diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_cdc.c b/drivers/staging/brcm80211/brcmfmac/dhd_cdc.c index 2220941a100e..bf3fe99f9afa 100644 --- a/drivers/staging/brcm80211/brcmfmac/dhd_cdc.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_cdc.c @@ -22,11 +22,11 @@ #include #include -#include -#include -#include -#include -#include +#include "dngl_stats.h" +#include "dhd.h" +#include "dhd_proto.h" +#include "dhd_bus.h" +#include "dhd_dbg.h" struct cdc_ioctl { u32 cmd; /* ioctl command value */ diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_common.c b/drivers/staging/brcm80211/brcmfmac/dhd_common.c index 73d8b0229de0..0a5a1a4b5138 100644 --- a/drivers/staging/brcm80211/brcmfmac/dhd_common.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_common.c @@ -16,16 +16,16 @@ #include #include #include -#include -#include #include #include +#include +#include #include -#include -#include -#include -#include -#include +#include "dngl_stats.h" +#include "dhd.h" +#include "dhd_bus.h" +#include "dhd_proto.h" +#include "dhd_dbg.h" #define BRCM_OUI "\x00\x10\x18" #define DOT11_OUI_LEN 3 diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c b/drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c index 600888862607..defc00960d55 100644 --- a/drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c @@ -20,8 +20,8 @@ #include #include -#include -#include +#include "dngl_stats.h" +#include "dhd.h" #define WL_ERROR(fmt, args...) printk(fmt, ##args) #define WL_TRACE(fmt, args...) no_printk(fmt, ##args) diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_linux.c b/drivers/staging/brcm80211/brcmfmac/dhd_linux.c index b48447c8005e..be6ac308604f 100644 --- a/drivers/staging/brcm80211/brcmfmac/dhd_linux.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_linux.c @@ -36,13 +36,12 @@ #include #include -#include -#include -#include -#include -#include - -#include +#include "dngl_stats.h" +#include "dhd.h" +#include "dhd_bus.h" +#include "dhd_proto.h" +#include "dhd_dbg.h" +#include "wl_cfg80211.h" #define EPI_VERSION_STR "4.218.248.5" #define ETH_P_BRCM 0x886c diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c b/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c index 330703bb3346..a803848c900b 100644 --- a/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c @@ -23,12 +23,11 @@ #include #include #include -#include "sdio_host.h" #include #include #include - #include +#include "sdio_host.h" /* register access macros */ #ifndef __BIG_ENDIAN @@ -162,13 +161,13 @@ typedef struct { #endif /* DHD_DEBUG */ #include -#include +#include "sbsdio.h" -#include -#include -#include -#include -#include +#include "dngl_stats.h" +#include "dhd.h" +#include "dhd_bus.h" +#include "dhd_proto.h" +#include "dhd_dbg.h" #include #include diff --git a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c index 457f5b14723f..e9d19c5acd71 100644 --- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c @@ -17,28 +17,24 @@ #include #include #include - -#include -#include -#include - -#include - -#include -#include - #include #include #include #include #include #include -#include - -#include #include #include -#include +#include +#include +#include + +#include +#include +#include +#include "dngl_stats.h" +#include "dhd.h" +#include "wl_cfg80211.h" void sdioh_sdio_set_host_pm_flags(int flag); diff --git a/drivers/staging/brcm80211/brcmfmac/wl_iw.c b/drivers/staging/brcm80211/brcmfmac/wl_iw.c index 9e4b087eb91b..a5f63f9da69c 100644 --- a/drivers/staging/brcm80211/brcmfmac/wl_iw.c +++ b/drivers/staging/brcm80211/brcmfmac/wl_iw.c @@ -13,29 +13,23 @@ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ - #include #include -#include +#include #include #include #include +#include +#include #include #include - -#include -#include - -#include -#include -#include +#include +#include "dngl_stats.h" +#include "dhd.h" struct si_pub; -#include -#include - #define WPA_OUI "\x00\x50\xF2" #define DOT11_MNG_RSN_ID 48 #define DOT11_MNG_WPA_ID 221 diff --git a/drivers/staging/brcm80211/brcmsmac/bmac.c b/drivers/staging/brcm80211/brcmsmac/bmac.c index 448a5625a336..9d6ee5dbad06 100644 --- a/drivers/staging/brcm80211/brcmsmac/bmac.c +++ b/drivers/staging/brcm80211/brcmsmac/bmac.c @@ -16,10 +16,10 @@ #include #include -#include "types.h" #include #include #include +#include "types.h" #include "rate.h" #include "phy/phy_hal.h" #include "channel.h" diff --git a/drivers/staging/brcm80211/brcmsmac/dma.c b/drivers/staging/brcm80211/brcmsmac/dma.c index 642c992122a0..adf364ca5daa 100644 --- a/drivers/staging/brcm80211/brcmsmac/dma.c +++ b/drivers/staging/brcm80211/brcmsmac/dma.c @@ -18,15 +18,15 @@ #include #include +#if defined(__mips__) +#include +#endif + #include #include #include "types.h" #include "dma.h" -#if defined(__mips__) -#include -#endif - /* * Each descriptor ring must be 8kB aligned, and fit within a contiguous 8kB physical address. */ diff --git a/drivers/staging/brcm80211/brcmsmac/otp.c b/drivers/staging/brcm80211/brcmsmac/otp.c index d09f9137db9b..2cda60f83d8f 100644 --- a/drivers/staging/brcm80211/brcmsmac/otp.c +++ b/drivers/staging/brcm80211/brcmsmac/otp.c @@ -18,8 +18,8 @@ #include #include -#include "aiutils.h" #include +#include "aiutils.h" #include "otp.h" #define OTPS_GUP_MASK 0x00000f00 diff --git a/drivers/staging/brcm80211/brcmsmac/stf.c b/drivers/staging/brcm80211/brcmsmac/stf.c index 625252aeb0bf..3a264ec1b37d 100644 --- a/drivers/staging/brcm80211/brcmsmac/stf.c +++ b/drivers/staging/brcm80211/brcmsmac/stf.c @@ -17,7 +17,6 @@ #include #include "types.h" - #include "d11.h" #include "rate.h" #include "phy/phy_hal.h"