diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-04-24 18:26:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:40 -0400 |
commit | aeca78b9b094d00cccca39e9a1055c74ad83ea69 (patch) | |
tree | 0eee05db7823a24f35876699f5b75122a28331fd /net | |
parent | 0ef9ccdd9ec7f2cf28d0605c216d853687f5291d (diff) |
net/rfkill/rfkill.c: fix build with CONFIG_RFKILL_LEDS=n
net/rfkill/rfkill.c: In function 'update_rfkill_state':
net/rfkill/rfkill.c:99: error: implicit declaration of function 'rfkill_led_trigger'
Caused by
: commit 492301fb5d12e4a77a1010ad2b6f1ed306014123
: Author: Larry Finger <Larry.Finger@lwfinger.net>
: Date: Thu Apr 9 22:14:19 2009 -0500
:
: rfkill: Fix broken rfkill LED in 2.6.30-rc1
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Michael Buesch <mb@bu3sch.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/rfkill/rfkill.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c index e2d4510623f2..4f5a83183c95 100644 --- a/net/rfkill/rfkill.c +++ b/net/rfkill/rfkill.c | |||
@@ -75,6 +75,11 @@ static void rfkill_led_trigger_activate(struct led_classdev *led) | |||
75 | 75 | ||
76 | rfkill_led_trigger(rfkill, rfkill->state); | 76 | rfkill_led_trigger(rfkill, rfkill->state); |
77 | } | 77 | } |
78 | #else | ||
79 | static inline void rfkill_led_trigger(struct rfkill *rfkill, | ||
80 | enum rfkill_state state) | ||
81 | { | ||
82 | } | ||
78 | #endif /* CONFIG_RFKILL_LEDS */ | 83 | #endif /* CONFIG_RFKILL_LEDS */ |
79 | 84 | ||
80 | static void rfkill_uevent(struct rfkill *rfkill) | 85 | static void rfkill_uevent(struct rfkill *rfkill) |