Date:2010-08-11 11:36:19 (8 years 3 months ago)
Author:acoul
Commit:7425e48f8c62249f9b8cb747f4c47ea2ce359a84
Message:package/mac80211: let build system enable led code through cflags (thank you nbd)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22591 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/mac80211/800-nuke_led_code.patch (1 diff)

Change Details

package/mac80211/800-nuke_led_code.patch
1--- a/config.mk
2@@ -115,7 +115,7 @@ CONFIG_COMPAT_MAC80211_RC_DEFAULT=minstr
3 # CONFIG_MAC80211_RC_PID=y
4 CONFIG_MAC80211_RC_MINSTREL=y
5 CONFIG_MAC80211_RC_MINSTREL_HT=y
6-CONFIG_MAC80211_LEDS=y
7+# CONFIG_MAC80211_LEDS=y
8
9 # enable mesh networking too
10 CONFIG_MAC80211_MESH=y
11@@ -194,7 +194,7 @@ CONFIG_B43_PCI_AUTOSELECT=y
12 ifneq ($(CONFIG_PCMCIA),)
13 # CONFIG_B43_PCMCIA=y
14 endif
15-CONFIG_B43_LEDS=y
16+# CONFIG_B43_LEDS=y
17 CONFIG_B43_PHY_LP=y
18 # CONFIG_B43_NPHY is not set
19 # CONFIG_B43_FORCE_PIO=y
20@@ -203,7 +203,7 @@ CONFIG_B43_PHY_LP=y
21 CONFIG_B43LEGACY=m
22 CONFIG_B43LEGACY_HWRNG=y
23 CONFIG_B43LEGACY_PCI_AUTOSELECT=y
24-CONFIG_B43LEGACY_LEDS=y
25+# CONFIG_B43LEGACY_LEDS=y
26 # CONFIG_B43LEGACY_DEBUG=y
27 CONFIG_B43LEGACY_DMA=y
28 CONFIG_B43LEGACY_PIO=y
29@@ -336,13 +336,13 @@ endif
30
31 CONFIG_P54_USB=m
32 CONFIG_RTL8187=m
33-CONFIG_RTL8187_LEDS=y
34+# CONFIG_RTL8187_LEDS=y
35
36 CONFIG_AT76C50X_USB=m
37
38 ifndef CONFIG_COMPAT_KERNEL_28
39 CONFIG_AR9170_USB=m
40-CONFIG_AR9170_LEDS=y
41+# CONFIG_AR9170_LEDS=y
42 endif
43
44 CONFIG_ATH9K_HTC=m
45@@ -426,7 +426,7 @@ CONFIG_RT2800_LIB=m
46 CONFIG_RT2X00_LIB_HT=y
47 CONFIG_RT2X00_LIB_FIRMWARE=y
48 CONFIG_RT2X00_LIB_CRYPTO=y
49-CONFIG_RT2X00_LIB_LEDS=y
50+# CONFIG_RT2X00_LIB_LEDS=y
51 # CONFIG_RT2X00_DEBUG=y
52 # CONFIG_RT2X00_LIB_DEBUGFS
53 endif
54@@ -437,7 +437,7 @@ endif
55
56 # p54
57 CONFIG_P54_COMMON=m
58-CONFIG_P54_LEDS=y
59+# CONFIG_P54_LEDS=y
60
61 # Atheros
62 CONFIG_ATH_COMMON=m
63--- a/include/linux/compat-2.6.25.h
64@@ -146,10 +146,12 @@ static inline void __hwrng_unregister(st
65     hwrng_unregister(rng);
66 }
67
68+#ifdef CONFIG_MAC80211_LEDS
69 static inline void led_classdev_unregister_suspended(struct led_classdev *lcd)
70 {
71     led_classdev_unregister(lcd);
72 }
73+#endif
74
75 /**
76  * The following things are out of ./include/linux/kernel.h

Archive Download the corresponding diff file



interactive