Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath6kl: create ath6kl_core.ko

Now ath6kl is ready for splitting core code to ath6kl_core.ko module.
This also makes it possible to link both sdio and usb code to kernel
at the same time, which earlier failed miserably.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

+38 -13
+15 -13
drivers/net/wireless/ath/ath6kl/Makefile
··· 21 21 # Author(s): ="Atheros" 22 22 #------------------------------------------------------------------------------ 23 23 24 - obj-$(CONFIG_ATH6KL) := ath6kl.o 25 - ath6kl-y += debug.o 26 - ath6kl-y += hif.o 27 - ath6kl-y += htc.o 28 - ath6kl-y += bmi.o 29 - ath6kl-y += cfg80211.o 30 - ath6kl-y += init.o 31 - ath6kl-y += main.o 32 - ath6kl-y += txrx.o 33 - ath6kl-y += wmi.o 34 - ath6kl-y += core.o 35 - ath6kl-y += sdio.o 36 - ath6kl-$(CONFIG_NL80211_TESTMODE) += testmode.o 24 + obj-$(CONFIG_ATH6KL) += ath6kl_core.o 25 + ath6kl_core-y += debug.o 26 + ath6kl_core-y += hif.o 27 + ath6kl_core-y += htc.o 28 + ath6kl_core-y += bmi.o 29 + ath6kl_core-y += cfg80211.o 30 + ath6kl_core-y += init.o 31 + ath6kl_core-y += main.o 32 + ath6kl_core-y += txrx.o 33 + ath6kl_core-y += wmi.o 34 + ath6kl_core-y += core.o 35 + ath6kl_core-$(CONFIG_NL80211_TESTMODE) += testmode.o 36 + 37 + obj-$(CONFIG_ATH6KL_SDIO) += ath6kl_sdio.o 38 + ath6kl_sdio-y += sdio.o
+3
drivers/net/wireless/ath/ath6kl/cfg80211.c
··· 16 16 17 17 #include <linux/moduleparam.h> 18 18 #include <linux/inetdevice.h> 19 + #include <linux/export.h> 19 20 20 21 #include "core.h" 21 22 #include "cfg80211.h" ··· 1936 1935 1937 1936 return 0; 1938 1937 } 1938 + EXPORT_SYMBOL(ath6kl_cfg80211_suspend); 1939 1939 1940 1940 int ath6kl_cfg80211_resume(struct ath6kl *ar) 1941 1941 { ··· 1988 1986 1989 1987 return 0; 1990 1988 } 1989 + EXPORT_SYMBOL(ath6kl_cfg80211_resume); 1991 1990 1992 1991 #ifdef CONFIG_PM 1993 1992
+9
drivers/net/wireless/ath/ath6kl/core.c
··· 16 16 17 17 #include "core.h" 18 18 19 + #include <linux/module.h> 19 20 #include <linux/moduleparam.h> 21 + #include <linux/export.h> 20 22 21 23 #include "debug.h" 22 24 #include "hif-ops.h" ··· 205 203 206 204 return ret; 207 205 } 206 + EXPORT_SYMBOL(ath6kl_core_init); 208 207 209 208 struct ath6kl *ath6kl_core_create(struct device *dev) 210 209 { ··· 261 258 262 259 return ar; 263 260 } 261 + EXPORT_SYMBOL(ath6kl_core_create); 264 262 265 263 void ath6kl_core_cleanup(struct ath6kl *ar) 266 264 { ··· 288 284 289 285 ath6kl_cfg80211_cleanup(ar); 290 286 } 287 + EXPORT_SYMBOL(ath6kl_core_cleanup); 291 288 292 289 void ath6kl_core_destroy(struct ath6kl *ar) 293 290 { 294 291 ath6kl_cfg80211_destroy(ar); 295 292 } 293 + EXPORT_SYMBOL(ath6kl_core_destroy); 296 294 295 + MODULE_AUTHOR("Qualcomm Atheros"); 296 + MODULE_DESCRIPTION("Core module for AR600x SDIO and USB devices."); 297 + MODULE_LICENSE("Dual BSD/GPL");
+3
drivers/net/wireless/ath/ath6kl/debug.c
··· 54 54 55 55 return rtn; 56 56 } 57 + EXPORT_SYMBOL(ath6kl_printk); 57 58 58 59 #ifdef CONFIG_ATH6KL_DEBUG 59 60 ··· 75 74 76 75 va_end(args); 77 76 } 77 + EXPORT_SYMBOL(ath6kl_dbg); 78 78 79 79 void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask, 80 80 const char *msg, const char *prefix, ··· 88 86 print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); 89 87 } 90 88 } 89 + EXPORT_SYMBOL(ath6kl_dbg_dump); 91 90 92 91 #define REG_OUTPUT_LEN_PER_LINE 25 93 92 #define REGTYPE_STR_LEN 100
+5
drivers/net/wireless/ath/ath6kl/hif.c
··· 15 15 */ 16 16 #include "hif.h" 17 17 18 + #include <linux/export.h> 19 + 18 20 #include "core.h" 19 21 #include "target.h" 20 22 #include "hif-ops.h" ··· 61 59 62 60 return 0; 63 61 } 62 + EXPORT_SYMBOL(ath6kl_hif_rw_comp_handler); 63 + 64 64 #define REG_DUMP_COUNT_AR6003 60 65 65 #define REGISTER_DUMP_LEN_MAX 60 66 66 ··· 564 560 565 561 return status; 566 562 } 563 + EXPORT_SYMBOL(ath6kl_hif_intr_bh_handler); 567 564 568 565 static int ath6kl_hif_enable_intrs(struct ath6kl_device *dev) 569 566 {
+3
drivers/net/wireless/ath/ath6kl/init.c
··· 17 17 18 18 #include <linux/moduleparam.h> 19 19 #include <linux/errno.h> 20 + #include <linux/export.h> 20 21 #include <linux/of.h> 21 22 #include <linux/mmc/sdio_func.h> 23 + 22 24 #include "core.h" 23 25 #include "cfg80211.h" 24 26 #include "target.h" ··· 1709 1707 1710 1708 clear_bit(WLAN_ENABLED, &ar->flag); 1711 1709 } 1710 + EXPORT_SYMBOL(ath6kl_stop_txrx);