提交 fdd10974 编写于 作者: L Larry Finger 提交者: John W. Linville

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: NLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e07aa378
...@@ -188,6 +188,11 @@ void b43_rfkill_init(struct b43_wldev *dev) ...@@ -188,6 +188,11 @@ void b43_rfkill_init(struct b43_wldev *dev)
"The built-in radio LED will not work.\n"); "The built-in radio LED will not work.\n");
#endif /* CONFIG_RFKILL_INPUT */ #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); err = input_register_polled_device(rfk->poll_dev);
if (err) if (err)
goto err_unreg_rfk; goto err_unreg_rfk;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册