wl1271: Divided driver to two separate modules
authorTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Mon, 22 Feb 2010 06:38:26 +0000 (08:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Mar 2010 20:02:59 +0000 (15:02 -0500)
Divided wl1271 driver to wl1271 "core" and wl1271_spi modules in preparation
of integration of the SDIO implementation.

Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/Kconfig
drivers/net/wireless/wl12xx/Makefile
drivers/net/wireless/wl12xx/wl1271_main.c

index 785e0244e3057fdcc85097d4e52553155a8e59c1..9c6fdccf00f1323c9fd26ec4dbba3aff02aa67c4 100644 (file)
@@ -51,3 +51,15 @@ config WL1271
 
          If you choose to build a module, it'll be called wl1271. Say N if
          unsure.
+
+config WL1271_SPI
+       tristate "TI wl1251 SPI support"
+       depends on WL1271 && SPI_MASTER
+       ---help---
+         This module adds support for the SPI interface of adapters using
+         TI wl1271 chipset.  Select this if your platform is using
+         the SPI bus.
+
+         If you choose to build a module, it'll be called wl1251_spi.
+         Say N if unsure.
+
index f47ec94c16dcba89c86e54cfcda56d6710b75d65..473a1e2879972b8bb74464cf882e4ade461c9750 100644 (file)
@@ -7,10 +7,11 @@ obj-$(CONFIG_WL1251)  += wl1251.o
 obj-$(CONFIG_WL1251_SPI)       += wl1251_spi.o
 obj-$(CONFIG_WL1251_SDIO)      += wl1251_sdio.o
 
-wl1271-objs            = wl1271_main.o  wl1271_spi.o wl1271_cmd.o  \
+wl1271-objs            = wl1271_main.o  wl1271_cmd.o wl1271_io.o \
                          wl1271_event.o wl1271_tx.o  wl1271_rx.o   \
                          wl1271_ps.o    wl1271_acx.o wl1271_boot.o \
-                         wl1271_init.o  wl1271_debugfs.o wl1271_io.o
+                         wl1271_init.o  wl1271_debugfs.o
 
 wl1271-$(CONFIG_NL80211_TESTMODE)      += wl1271_testmode.o
 obj-$(CONFIG_WL1271)   += wl1271.o
+obj-$(CONFIG_WL1271_SPI)       += wl1271_spi.o
index 54bc1e961cbabd22f7a59c90ece94c6a48385531..ea49cede4cb1b0705736e5d6865f13abdd4c0211 100644 (file)
@@ -1948,6 +1948,7 @@ int wl1271_register_hw(struct wl1271 *wl)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(wl1271_register_hw);
 
 int wl1271_init_ieee80211(struct wl1271 *wl)
 {
@@ -1976,6 +1977,7 @@ int wl1271_init_ieee80211(struct wl1271 *wl)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(wl1271_init_ieee80211);
 
 #define WL1271_DEFAULT_CHANNEL 0
 
@@ -2030,6 +2032,7 @@ struct ieee80211_hw *wl1271_alloc_hw(void)
 
        return hw;
 }
+EXPORT_SYMBOL_GPL(wl1271_alloc_hw);
 
 int wl1271_free_hw(struct wl1271 *wl)
 {
@@ -2050,3 +2053,8 @@ int wl1271_free_hw(struct wl1271 *wl)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(wl1271_free_hw);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Luciano Coelho <luciano.coelho@nokia.com>");
+MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>");