Commit c4daa849 authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

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: default avatarjulie Sullivan <kernelmail.jms@gmail.com>
Signed-off-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent af34b024
...@@ -19,15 +19,14 @@ ...@@ -19,15 +19,14 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/pci_ids.h> #include <linux/pci_ids.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <defs.h> #include <defs.h>
#include <brcm_hw_ids.h> #include <brcm_hw_ids.h>
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <brcmu_wifi.h> #include <brcmu_wifi.h>
#include <soc.h> #include <soc.h>
#include "bcmsdbus.h" /* common SDIO/controller interface */
#include <bcmsdbus.h> /* common SDIO/controller interface */ #include "sbsdio.h" /* BRCM sdio device core */
#include <sbsdio.h> /* BRCM sdio device core */
#include "dngl_stats.h" #include "dngl_stats.h"
#include "dhd.h" #include "dhd.h"
......
...@@ -16,22 +16,20 @@ ...@@ -16,22 +16,20 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/mmc/sdio.h> #include <linux/mmc/sdio.h>
#include <defs.h>
#include <brcm_hw_ids.h>
#include <brcmu_utils.h>
#include <brcmu_wifi.h>
#include "sdio_host.h"
#include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */
#include <sdiovar.h> /* ioctl/iovars */
#include <linux/mmc/core.h> #include <linux/mmc/core.h>
#include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_func.h>
#include <linux/mmc/sdio_ids.h> #include <linux/mmc/sdio_ids.h>
#include <linux/suspend.h> #include <linux/suspend.h>
#include <dngl_stats.h> #include <defs.h>
#include <dhd.h> #include <brcm_hw_ids.h>
#include <brcmu_utils.h>
#include <brcmu_wifi.h>
#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" #include "bcmsdh_sdmmc.h"
extern int sdio_function_init(void); extern int sdio_function_init(void);
......
...@@ -16,19 +16,18 @@ ...@@ -16,19 +16,18 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/sched.h> /* request_irq() */ #include <linux/sched.h> /* request_irq() */
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <net/cfg80211.h>
#include <defs.h>
#include <brcmu_utils.h>
#include <brcmu_wifi.h>
#include "sdio_host.h"
#include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */
#include <sdiovar.h> /* to get msglevel bit values */
#include <linux/mmc/core.h> #include <linux/mmc/core.h>
#include <linux/mmc/card.h> #include <linux/mmc/card.h>
#include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_func.h>
#include <linux/mmc/sdio_ids.h> #include <linux/mmc/sdio_ids.h>
#include <net/cfg80211.h>
#include <defs.h>
#include <brcmu_utils.h>
#include <brcmu_wifi.h>
#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 "dngl_stats.h"
#include "dhd.h" #include "dhd.h"
...@@ -53,8 +52,8 @@ ...@@ -53,8 +52,8 @@
#include <bcmsdh_sdmmc.h> #include <bcmsdh_sdmmc.h>
#include <dhd_dbg.h> #include "dhd_dbg.h"
#include <wl_cfg80211.h> #include "wl_cfg80211.h"
extern void sdioh_sdmmc_devintr_off(sdioh_info_t *sd); extern void sdioh_sdmmc_devintr_off(sdioh_info_t *sd);
extern void sdioh_sdmmc_devintr_on(sdioh_info_t *sd); extern void sdioh_sdmmc_devintr_on(sdioh_info_t *sd);
......
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <brcmu_wifi.h> #include <brcmu_wifi.h>
#include <dngl_stats.h> #include "dngl_stats.h"
#include <dhd.h> #include "dhd.h"
#include <dhd_proto.h> #include "dhd_proto.h"
#include <dhd_bus.h> #include "dhd_bus.h"
#include <dhd_dbg.h> #include "dhd_dbg.h"
struct cdc_ioctl { struct cdc_ioctl {
u32 cmd; /* ioctl command value */ u32 cmd; /* ioctl command value */
......
...@@ -16,16 +16,16 @@ ...@@ -16,16 +16,16 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <defs.h>
#include <brcmu_wifi.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <defs.h>
#include <brcmu_wifi.h>
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <dngl_stats.h> #include "dngl_stats.h"
#include <dhd.h> #include "dhd.h"
#include <dhd_bus.h> #include "dhd_bus.h"
#include <dhd_proto.h> #include "dhd_proto.h"
#include <dhd_dbg.h> #include "dhd_dbg.h"
#define BRCM_OUI "\x00\x10\x18" #define BRCM_OUI "\x00\x10\x18"
#define DOT11_OUI_LEN 3 #define DOT11_OUI_LEN 3
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include <defs.h> #include <defs.h>
#include <brcmu_wifi.h> #include <brcmu_wifi.h>
#include <dngl_stats.h> #include "dngl_stats.h"
#include <dhd.h> #include "dhd.h"
#define WL_ERROR(fmt, args...) printk(fmt, ##args) #define WL_ERROR(fmt, args...) printk(fmt, ##args)
#define WL_TRACE(fmt, args...) no_printk(fmt, ##args) #define WL_TRACE(fmt, args...) no_printk(fmt, ##args)
......
...@@ -36,13 +36,12 @@ ...@@ -36,13 +36,12 @@
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <brcmu_wifi.h> #include <brcmu_wifi.h>
#include <dngl_stats.h> #include "dngl_stats.h"
#include <dhd.h> #include "dhd.h"
#include <dhd_bus.h> #include "dhd_bus.h"
#include <dhd_proto.h> #include "dhd_proto.h"
#include <dhd_dbg.h> #include "dhd_dbg.h"
#include "wl_cfg80211.h"
#include <wl_cfg80211.h>
#define EPI_VERSION_STR "4.218.248.5" #define EPI_VERSION_STR "4.218.248.5"
#define ETH_P_BRCM 0x886c #define ETH_P_BRCM 0x886c
......
...@@ -23,12 +23,11 @@ ...@@ -23,12 +23,11 @@
#include <linux/mmc/sdio.h> #include <linux/mmc/sdio.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <defs.h> #include <defs.h>
#include "sdio_host.h"
#include <brcmu_wifi.h> #include <brcmu_wifi.h>
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <brcm_hw_ids.h> #include <brcm_hw_ids.h>
#include <soc.h> #include <soc.h>
#include "sdio_host.h"
/* register access macros */ /* register access macros */
#ifndef __BIG_ENDIAN #ifndef __BIG_ENDIAN
...@@ -162,13 +161,13 @@ typedef struct { ...@@ -162,13 +161,13 @@ typedef struct {
#endif /* DHD_DEBUG */ #endif /* DHD_DEBUG */
#include <chipcommon.h> #include <chipcommon.h>
#include <sbsdio.h> #include "sbsdio.h"
#include <dngl_stats.h> #include "dngl_stats.h"
#include <dhd.h> #include "dhd.h"
#include <dhd_bus.h> #include "dhd_bus.h"
#include <dhd_proto.h> #include "dhd_proto.h"
#include <dhd_dbg.h> #include "dhd_dbg.h"
#include <sdiovar.h> #include <sdiovar.h>
#include <bcmchip.h> #include <bcmchip.h>
......
...@@ -17,28 +17,24 @@ ...@@ -17,28 +17,24 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <brcmu_utils.h>
#include <defs.h>
#include <brcmu_wifi.h>
#include <asm/uaccess.h>
#include <dngl_stats.h>
#include <dhd.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/wireless.h> #include <linux/wireless.h>
#include <linux/ieee80211.h> #include <linux/ieee80211.h>
#include <net/cfg80211.h>
#include <net/rtnetlink.h>
#include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_func.h>
#include <linux/firmware.h> #include <linux/firmware.h>
#include <wl_cfg80211.h> #include <linux/uaccess.h>
#include <net/cfg80211.h>
#include <net/rtnetlink.h>
#include <brcmu_utils.h>
#include <defs.h>
#include <brcmu_wifi.h>
#include "dngl_stats.h"
#include "dhd.h"
#include "wl_cfg80211.h"
void sdioh_sdio_set_host_pm_flags(int flag); void sdioh_sdio_set_host_pm_flags(int flag);
......
...@@ -13,29 +13,23 @@ ...@@ -13,29 +13,23 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/semaphore.h> #include <linux/semaphore.h>
#include <defs.h> #include <linux/ieee80211.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/wireless.h> #include <linux/wireless.h>
#include <linux/if_arp.h>
#include <linux/uaccess.h>
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <brcmu_wifi.h> #include <brcmu_wifi.h>
#include <defs.h>
#include <linux/if_arp.h> #include "dngl_stats.h"
#include <asm/uaccess.h> #include "dhd.h"
#include <dngl_stats.h>
#include <dhd.h>
#include <linux/ieee80211.h>
struct si_pub; struct si_pub;
#include <dngl_stats.h>
#include <dhd.h>
#define WPA_OUI "\x00\x50\xF2" #define WPA_OUI "\x00\x50\xF2"
#define DOT11_MNG_RSN_ID 48 #define DOT11_MNG_RSN_ID 48
#define DOT11_MNG_WPA_ID 221 #define DOT11_MNG_WPA_ID 221
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <net/mac80211.h> #include <net/mac80211.h>
#include "types.h"
#include <brcm_hw_ids.h> #include <brcm_hw_ids.h>
#include <aiutils.h> #include <aiutils.h>
#include <chipcommon.h> #include <chipcommon.h>
#include "types.h"
#include "rate.h" #include "rate.h"
#include "phy/phy_hal.h" #include "phy/phy_hal.h"
#include "channel.h" #include "channel.h"
......
...@@ -18,15 +18,15 @@ ...@@ -18,15 +18,15 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/pci.h>
#if defined(__mips__)
#include <asm/addrspace.h>
#endif
#include <brcmu_utils.h> #include <brcmu_utils.h>
#include <aiutils.h> #include <aiutils.h>
#include "types.h" #include "types.h"
#include "dma.h" #include "dma.h"
#if defined(__mips__)
#include <asm/addrspace.h>
#endif
/* /*
* Each descriptor ring must be 8kB aligned, and fit within a contiguous 8kB physical address. * Each descriptor ring must be 8kB aligned, and fit within a contiguous 8kB physical address.
*/ */
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <brcm_hw_ids.h> #include <brcm_hw_ids.h>
#include "aiutils.h"
#include <chipcommon.h> #include <chipcommon.h>
#include "aiutils.h"
#include "otp.h" #include "otp.h"
#define OTPS_GUP_MASK 0x00000f00 #define OTPS_GUP_MASK 0x00000f00
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <net/mac80211.h> #include <net/mac80211.h>
#include "types.h" #include "types.h"
#include "d11.h" #include "d11.h"
#include "rate.h" #include "rate.h"
#include "phy/phy_hal.h" #include "phy/phy_hal.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment