]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
b43: Issue warning when RFKILL_INPUT is not enabled
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 16 Sep 2008 19:56:49 +0000 (14:56 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:17:59 +0000 (16:17 -0400)
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>
drivers/net/wireless/b43/rfkill.c

index 7b9e99adb8c385c9fd829bc08575fd8ae03cfab8..96902da7d6618ddd573338bba606b2f4c83c7ae0 100644 (file)
@@ -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;