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>
This commit is contained in:
parent
e07aa3783e
commit
fdd1097488
1 changed files with 5 additions and 0 deletions
|
@ -188,6 +188,11 @@ void b43_rfkill_init(struct b43_wldev *dev)
|
|||
"The built-in radio LED will not work.\n");
|
||||
#endif /* CONFIG_RFKILL_INPUT */
|
||||
|
||||
#if !defined(CONFIG_RFKILL_INPUT) && !defined(CONFIG_RFKILL_INPUT_MODULE)
|
||||
b43warn(wl, "The rfkill-input subsystem is not available. "
|
||||
"The built-in radio LED will not work.\n");
|
||||
#endif
|
||||
|
||||
err = input_register_polled_device(rfk->poll_dev);
|
||||
if (err)
|
||||
goto err_unreg_rfk;
|
||||
|
|
Loading…
Reference in a new issue