diff options
author | Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> | 2010-02-22 01:38:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-09 15:02:59 -0500 |
commit | 50b3eb4bdda4690fc2848079f209b8d605c89fb5 (patch) | |
tree | a87aa114781dadc5e09738b3175ecd1730916087 /drivers/net | |
parent | 760d969f9e91a734161a5979a3b3818062e80b7e (diff) |
wl1271: Divided driver to two separate modules
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/wl12xx/Kconfig | 12 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/Makefile | 5 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 8 |
3 files changed, 23 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/Kconfig b/drivers/net/wireless/wl12xx/Kconfig index 785e0244e30..9c6fdccf00f 100644 --- a/drivers/net/wireless/wl12xx/Kconfig +++ b/drivers/net/wireless/wl12xx/Kconfig | |||
@@ -51,3 +51,15 @@ config WL1271 | |||
51 | 51 | ||
52 | If you choose to build a module, it'll be called wl1271. Say N if | 52 | If you choose to build a module, it'll be called wl1271. Say N if |
53 | unsure. | 53 | unsure. |
54 | |||
55 | config WL1271_SPI | ||
56 | tristate "TI wl1251 SPI support" | ||
57 | depends on WL1271 && SPI_MASTER | ||
58 | ---help--- | ||
59 | This module adds support for the SPI interface of adapters using | ||
60 | TI wl1271 chipset. Select this if your platform is using | ||
61 | the SPI bus. | ||
62 | |||
63 | If you choose to build a module, it'll be called wl1251_spi. | ||
64 | Say N if unsure. | ||
65 | |||
diff --git a/drivers/net/wireless/wl12xx/Makefile b/drivers/net/wireless/wl12xx/Makefile index f47ec94c16d..473a1e28799 100644 --- a/drivers/net/wireless/wl12xx/Makefile +++ b/drivers/net/wireless/wl12xx/Makefile | |||
@@ -7,10 +7,11 @@ obj-$(CONFIG_WL1251) += wl1251.o | |||
7 | obj-$(CONFIG_WL1251_SPI) += wl1251_spi.o | 7 | obj-$(CONFIG_WL1251_SPI) += wl1251_spi.o |
8 | obj-$(CONFIG_WL1251_SDIO) += wl1251_sdio.o | 8 | obj-$(CONFIG_WL1251_SDIO) += wl1251_sdio.o |
9 | 9 | ||
10 | wl1271-objs = wl1271_main.o wl1271_spi.o wl1271_cmd.o \ | 10 | wl1271-objs = wl1271_main.o wl1271_cmd.o wl1271_io.o \ |
11 | wl1271_event.o wl1271_tx.o wl1271_rx.o \ | 11 | wl1271_event.o wl1271_tx.o wl1271_rx.o \ |
12 | wl1271_ps.o wl1271_acx.o wl1271_boot.o \ | 12 | wl1271_ps.o wl1271_acx.o wl1271_boot.o \ |
13 | wl1271_init.o wl1271_debugfs.o wl1271_io.o | 13 | wl1271_init.o wl1271_debugfs.o |
14 | 14 | ||
15 | wl1271-$(CONFIG_NL80211_TESTMODE) += wl1271_testmode.o | 15 | wl1271-$(CONFIG_NL80211_TESTMODE) += wl1271_testmode.o |
16 | obj-$(CONFIG_WL1271) += wl1271.o | 16 | obj-$(CONFIG_WL1271) += wl1271.o |
17 | obj-$(CONFIG_WL1271_SPI) += wl1271_spi.o | ||
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 54bc1e961cb..ea49cede4cb 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1948,6 +1948,7 @@ int wl1271_register_hw(struct wl1271 *wl) | |||
1948 | 1948 | ||
1949 | return 0; | 1949 | return 0; |
1950 | } | 1950 | } |
1951 | EXPORT_SYMBOL_GPL(wl1271_register_hw); | ||
1951 | 1952 | ||
1952 | int wl1271_init_ieee80211(struct wl1271 *wl) | 1953 | int wl1271_init_ieee80211(struct wl1271 *wl) |
1953 | { | 1954 | { |
@@ -1976,6 +1977,7 @@ int wl1271_init_ieee80211(struct wl1271 *wl) | |||
1976 | 1977 | ||
1977 | return 0; | 1978 | return 0; |
1978 | } | 1979 | } |
1980 | EXPORT_SYMBOL_GPL(wl1271_init_ieee80211); | ||
1979 | 1981 | ||
1980 | #define WL1271_DEFAULT_CHANNEL 0 | 1982 | #define WL1271_DEFAULT_CHANNEL 0 |
1981 | 1983 | ||
@@ -2030,6 +2032,7 @@ struct ieee80211_hw *wl1271_alloc_hw(void) | |||
2030 | 2032 | ||
2031 | return hw; | 2033 | return hw; |
2032 | } | 2034 | } |
2035 | EXPORT_SYMBOL_GPL(wl1271_alloc_hw); | ||
2033 | 2036 | ||
2034 | int wl1271_free_hw(struct wl1271 *wl) | 2037 | int wl1271_free_hw(struct wl1271 *wl) |
2035 | { | 2038 | { |
@@ -2050,3 +2053,8 @@ int wl1271_free_hw(struct wl1271 *wl) | |||
2050 | 2053 | ||
2051 | return 0; | 2054 | return 0; |
2052 | } | 2055 | } |
2056 | EXPORT_SYMBOL_GPL(wl1271_free_hw); | ||
2057 | |||
2058 | MODULE_LICENSE("GPL"); | ||
2059 | MODULE_AUTHOR("Luciano Coelho <luciano.coelho@nokia.com>"); | ||
2060 | MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>"); | ||