mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
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>
This commit is contained in:
parent
0ef9ccdd9e
commit
aeca78b9b0
@ -75,6 +75,11 @@ static void rfkill_led_trigger_activate(struct led_classdev *led)
|
|||||||
|
|
||||||
rfkill_led_trigger(rfkill, rfkill->state);
|
rfkill_led_trigger(rfkill, rfkill->state);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static inline void rfkill_led_trigger(struct rfkill *rfkill,
|
||||||
|
enum rfkill_state state)
|
||||||
|
{
|
||||||
|
}
|
||||||
#endif /* CONFIG_RFKILL_LEDS */
|
#endif /* CONFIG_RFKILL_LEDS */
|
||||||
|
|
||||||
static void rfkill_uevent(struct rfkill *rfkill)
|
static void rfkill_uevent(struct rfkill *rfkill)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user