Skip to content

Commit 60bd100

Browse files
atmelscgregkh
authored andcommitted
staging: wilc1000: remove wilc_wlan.c included in wilc_wfi_cfgoperations.c
This patch removes "wilc_wlan.c" from the wilc_wfi_cfgoperation.c file and adds wilc_wlan.o into Makefile to compile it because there is few benefits. This patch also adds "wilc_wfi_netdevice.h" in the wilc_wlan.c file to avoid the compile errors. Signed-off-by: Tony Cho <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f6e55e0 commit 60bd100

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/staging/wilc1000/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ ccflags-$(CONFIG_WILC1000_DYNAMICALLY_ALLOCATE_MEMROY) += -DWILC_NORMAL_ALLOC
2121
wilc1000-objs := wilc_wfi_cfgoperations.o linux_wlan.o linux_mon.o \
2222
wilc_msgqueue.o \
2323
coreconfigurator.o host_interface.o \
24-
wilc_sdio.o wilc_spi.o wilc_wlan_cfg.o wilc_debugfs.o
24+
wilc_sdio.o wilc_spi.o wilc_wlan_cfg.o wilc_debugfs.o \
25+
wilc_wlan.o
2526

2627
wilc1000-$(CONFIG_WILC1000_SDIO) += linux_wlan_sdio.o
2728
wilc1000-$(CONFIG_WILC1000_SPI) += linux_wlan_spi.o

drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212

1313
#include "wilc_wfi_cfgoperations.h"
14-
#include "wilc_wlan.c"
1514
#ifdef WILC_SDIO
1615
#include "linux_wlan_sdio.h"
1716
#endif

drivers/staging/wilc1000/wilc_wlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/* //////////////////////////////////////////////////////////////////////////// */
99

1010
#include "wilc_wlan_if.h"
11-
#include "wilc_wlan.h"
11+
#include "wilc_wfi_netdevice.h"
1212
#include "wilc_wlan_cfg.h"
1313

1414
/********************************************

0 commit comments

Comments
 (0)