]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
ath5k: use bool type for no_hw_rfkill_switch module parameter
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:58:47 +0000 (14:58 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:58:47 +0000 (14:58 -0500)
Avoids this:

  CC [M]  drivers/net/wireless/ath/ath5k/base.o
drivers/net/wireless/ath/ath5k/base.c: In function ‘__check_no_hw_rfkill_switch’:
drivers/net/wireless/ath/ath5k/base.c:85:1: warning: return from incompatible pointer type

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

index 4ab835f08a430ff6b7132176c9b6a69e2e5d054c..a339693fbe265cfc475f097d70fb0c11dc29e0b0 100644 (file)
@@ -80,7 +80,7 @@ static bool modparam_fastchanswitch;
 module_param_named(fastchanswitch, modparam_fastchanswitch, bool, S_IRUGO);
 MODULE_PARM_DESC(fastchanswitch, "Enable fast channel switching for AR2413/AR5413 radios.");
 
-static int ath5k_modparam_no_hw_rfkill_switch;
+static bool ath5k_modparam_no_hw_rfkill_switch;
 module_param_named(no_hw_rfkill_switch, ath5k_modparam_no_hw_rfkill_switch,
                                                                bool, S_IRUGO);
 MODULE_PARM_DESC(no_hw_rfkill_switch, "Ignore the GPIO RFKill switch state");