summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_wlan_if.h
diff options
context:
space:
mode:
authorArnd Bergmann2018-08-13 23:20:33 +0200
committerGreg Kroah-Hartman2018-08-27 19:12:59 +0200
commitf45b8934b90b1d0017d33f8529941ec5020e9e0e (patch)
treed0c058e7bdbf6f32964b08550a98a5f920db65d7 /drivers/staging/wilc1000/wilc_wlan_if.h
parentLinux 4.19-rc1 (diff)
downloadkernel-qcow2-linux-f45b8934b90b1d0017d33f8529941ec5020e9e0e.tar.gz
kernel-qcow2-linux-f45b8934b90b1d0017d33f8529941ec5020e9e0e.tar.xz
kernel-qcow2-linux-f45b8934b90b1d0017d33f8529941ec5020e9e0e.zip
staging: wilc1000: revert "fix TODO to compile spi and sdio components in single module"
The TODO item named "make spi and sdio components coexist in one build" was apparently addressed a long time ago, but never removed from the TODO file. However, the new patch that tries to address it actually makes it worse again by duplicating the common parts of the driver into two separate modules rather than sharing them. This also introduces a build regression when one of the two is built-in while the other is a loadable module: drivers/staging/wilc1000/wilc_debugfs.o:(.data+0x10): undefined reference to `__this_module' Reverting the patch makes it build again. I'm leaving the TODO file modification though, as there is nothing left to do for this item. A related problem however still seems to exist: one still cannot have multiple concurrent instances of wilc1000 devices present in the system, as there are lots of shared global variables such as host_interface.c:static struct wilc_vif *periodic_rssi_vif; wilc_sdio.c:static struct wilc_sdio g_sdio; wilc_wlan.c:static enum chip_ps_states chip_ps_state = CHIP_WAKEDUP; wilc_wlan.c:static u32 pending_acks; wilc_wfi_cfgoperations.c:int wilc_connecting; In order to have multiple instances working (sdio, spi, or mixed), all such variables need to be dynamically allocated per instance and stored in 'struct wilc' or one of the structures referenced by it. Fixes: 9abc44ba4e2f ("staging: wilc1000: fix TODO to compile spi and sdio components in single module") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan_if.h')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan_if.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h
index 00d13b153f80..b81a73b9bd67 100644
--- a/drivers/staging/wilc1000/wilc_wlan_if.h
+++ b/drivers/staging/wilc1000/wilc_wlan_if.h
@@ -831,6 +831,4 @@ struct wilc;
int wilc_wlan_init(struct net_device *dev);
u32 wilc_get_chipid(struct wilc *wilc, bool update);
-int wilc_debugfs_init(void);
-void wilc_debugfs_remove(void);
#endif