diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2008-09-16 15:56:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-24 16:17:59 -0400 |
commit | fdd1097488e3c1278996bd7c73d8429d410e725a (patch) | |
tree | 104899f23b38542c4eb37293684171a00901b031 /drivers/net/wireless/b43 | |
parent | e07aa3783e9f66b03d72e7afd9f709d7f7059662 (diff) |
b43: Issue warning when RFKILL_INPUT is not enabled
If the system is misconfigured with CONFIG_RFKILL set but CONFIG_RFKILL_INPUT
not set, the built-in radio LEDs will not work. In the current code, no warning
is issued.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/rfkill.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/rfkill.c b/drivers/net/wireless/b43/rfkill.c index 7b9e99adb8c3..96902da7d661 100644 --- a/drivers/net/wireless/b43/rfkill.c +++ b/drivers/net/wireless/b43/rfkill.c | |||
@@ -188,6 +188,11 @@ void b43_rfkill_init(struct b43_wldev *dev) | |||
188 | "The built-in radio LED will not work.\n"); | 188 | "The built-in radio LED will not work.\n"); |
189 | #endif /* CONFIG_RFKILL_INPUT */ | 189 | #endif /* CONFIG_RFKILL_INPUT */ |
190 | 190 | ||
191 | #if !defined(CONFIG_RFKILL_INPUT) && !defined(CONFIG_RFKILL_INPUT_MODULE) | ||
192 | b43warn(wl, "The rfkill-input subsystem is not available. " | ||
193 | "The built-in radio LED will not work.\n"); | ||
194 | #endif | ||
195 | |||
191 | err = input_register_polled_device(rfk->poll_dev); | 196 | err = input_register_polled_device(rfk->poll_dev); |
192 | if (err) | 197 | if (err) |
193 | goto err_unreg_rfk; | 198 | goto err_unreg_rfk; |