ath5k: Introduce _ath5k_printk to reduce code/text
authorJoe Perches <joe@perches.com>
Mon, 19 Mar 2012 00:30:53 +0000 (17:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 18:52:14 +0000 (14:52 -0400)
commit227842d1176019512d24236f7fb894f0fadd30d1
tree431ec48aaacfbfbe33083cde0d038ec21284bfba
parent516304b0f45614fb8967dc86ff681499204cdbb1
ath5k: Introduce _ath5k_printk to reduce code/text

Macros can be converted to functions to reduce overall object size.

Convert the ATH5K_PRINTK macro to use _ath5k_printk.

Allyesconfig size is reduced ~10%

$ size drivers/net/wireless/ath/ath5k/built-in.o*
   text    data     bss     dec     hex filename
 211557    2032   40672  254261   3e135 drivers/net/wireless/ath/ath5k/built-in.o.new
 235412    2032   47296  284740   45844 drivers/net/wireless/ath/ath5k/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/base.c