diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-06-11 16:32:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-13 16:14:51 -0400 |
commit | 6847aa5cce6e22c3625a243b02909ac46aafa110 (patch) | |
tree | d3433988f735538f3e4b39336b191a6f1a96bcfd | |
parent | e76328e4a8260707fbc29c99773fb5ba4627096c (diff) |
rt2x00: LEDS build failure
Config symbols that select LEDS_CLASS need to depend on NEW_LEDS so that
undefined symbols are not used in the build.
The alternative is to select NEW_LEDS, which some drivers do.
This patch fixes the led_* symbols build errors.
(.text+0x174cdc): undefined reference to `input_unregister_device'
(.text+0x174d9f): undefined reference to `input_allocate_device'
(.text+0x174e2d): undefined reference to `input_register_device'
(.text+0x174e53): undefined reference to `input_free_device'
rt2x00rfkill.c:(.text+0x176dc4): undefined reference to `input_allocate_polled_device'
rt2x00rfkill.c:(.text+0x176e8b): undefined reference to `input_event'
rt2x00rfkill.c:(.text+0x176e9f): undefined reference to `input_event'
(.text+0x176eca): undefined reference to `input_unregister_polled_device'
(.text+0x176efc): undefined reference to `input_free_polled_device'
(.text+0x176f37): undefined reference to `input_free_polled_device'
(.text+0x176fd8): undefined reference to `input_register_polled_device'
(.text+0x1772c0): undefined reference to `led_classdev_resume'
(.text+0x1772d4): undefined reference to `led_classdev_resume'
(.text+0x1772e8): undefined reference to `led_classdev_resume'
(.text+0x17730a): undefined reference to `led_classdev_suspend'
(.text+0x17731e): undefined reference to `led_classdev_suspend'
(.text+0x17732f): undefined reference to `led_classdev_suspend'
rt2x00leds.c:(.text+0x177348): undefined reference to `led_classdev_unregister'
rt2x00leds.c:(.text+0x1773c0): undefined reference to `led_classdev_register'
rfkill-input.c:(.text+0x209e4c): undefined reference to `input_close_device'
rfkill-input.c:(.text+0x209e53): undefined reference to `input_unregister_handle'
rfkill-input.c:(.text+0x209ea1): undefined reference to `input_register_handle'
rfkill-input.c:(.text+0x209eae): undefined reference to `input_open_device'
rfkill-input.c:(.text+0x209ebb): undefined reference to `input_unregister_handle'
rfkill-input.c:(.init.text+0x17405): undefined reference to `input_register_handler'
rfkill-input.c:(.exit.text+0x194f): undefined reference to `input_unregister_handler'
make[1]: *** [vmlinux] Error 1
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/Kconfig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/Kconfig b/drivers/net/wireless/rt2x00/Kconfig index 23abef92699f..2d611876bbe0 100644 --- a/drivers/net/wireless/rt2x00/Kconfig +++ b/drivers/net/wireless/rt2x00/Kconfig | |||
@@ -38,7 +38,7 @@ config RT2X00_LIB_RFKILL | |||
38 | 38 | ||
39 | config RT2X00_LIB_LEDS | 39 | config RT2X00_LIB_LEDS |
40 | boolean | 40 | boolean |
41 | depends on RT2X00_LIB | 41 | depends on RT2X00_LIB && NEW_LEDS |
42 | 42 | ||
43 | config RT2400PCI | 43 | config RT2400PCI |
44 | tristate "Ralink rt2400 pci/pcmcia support" | 44 | tristate "Ralink rt2400 pci/pcmcia support" |
@@ -61,7 +61,7 @@ config RT2400PCI_RFKILL | |||
61 | 61 | ||
62 | config RT2400PCI_LEDS | 62 | config RT2400PCI_LEDS |
63 | bool "RT2400 leds support" | 63 | bool "RT2400 leds support" |
64 | depends on RT2400PCI | 64 | depends on RT2400PCI && NEW_LEDS |
65 | select LEDS_CLASS | 65 | select LEDS_CLASS |
66 | select RT2X00_LIB_LEDS | 66 | select RT2X00_LIB_LEDS |
67 | ---help--- | 67 | ---help--- |
@@ -88,7 +88,7 @@ config RT2500PCI_RFKILL | |||
88 | 88 | ||
89 | config RT2500PCI_LEDS | 89 | config RT2500PCI_LEDS |
90 | bool "RT2500 leds support" | 90 | bool "RT2500 leds support" |
91 | depends on RT2500PCI | 91 | depends on RT2500PCI && NEW_LEDS |
92 | select LEDS_CLASS | 92 | select LEDS_CLASS |
93 | select RT2X00_LIB_LEDS | 93 | select RT2X00_LIB_LEDS |
94 | ---help--- | 94 | ---help--- |
@@ -117,7 +117,7 @@ config RT61PCI_RFKILL | |||
117 | 117 | ||
118 | config RT61PCI_LEDS | 118 | config RT61PCI_LEDS |
119 | bool "RT61 leds support" | 119 | bool "RT61 leds support" |
120 | depends on RT61PCI | 120 | depends on RT61PCI && NEW_LEDS |
121 | select LEDS_CLASS | 121 | select LEDS_CLASS |
122 | select RT2X00_LIB_LEDS | 122 | select RT2X00_LIB_LEDS |
123 | ---help--- | 123 | ---help--- |
@@ -134,7 +134,7 @@ config RT2500USB | |||
134 | 134 | ||
135 | config RT2500USB_LEDS | 135 | config RT2500USB_LEDS |
136 | bool "RT2500 leds support" | 136 | bool "RT2500 leds support" |
137 | depends on RT2500USB | 137 | depends on RT2500USB && NEW_LEDS |
138 | select LEDS_CLASS | 138 | select LEDS_CLASS |
139 | select RT2X00_LIB_LEDS | 139 | select RT2X00_LIB_LEDS |
140 | ---help--- | 140 | ---help--- |
@@ -153,7 +153,7 @@ config RT73USB | |||
153 | 153 | ||
154 | config RT73USB_LEDS | 154 | config RT73USB_LEDS |
155 | bool "RT73 leds support" | 155 | bool "RT73 leds support" |
156 | depends on RT73USB | 156 | depends on RT73USB && NEW_LEDS |
157 | select LEDS_CLASS | 157 | select LEDS_CLASS |
158 | select RT2X00_LIB_LEDS | 158 | select RT2X00_LIB_LEDS |
159 | ---help--- | 159 | ---help--- |