linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media/radio/shark2: Fix build error caused by missing dependencies
@ 2012-08-22 15:16 Guenter Roeck
  2012-08-22 15:22 ` Hans de Goede
  0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2012-08-22 15:16 UTC (permalink / raw)
  To: linux-media
  Cc: Mauro Carvalho Chehab, Hans de Goede, linux-kernel, Guenter Roeck

Fix build error:

ERROR: "led_classdev_register" [drivers/media/radio/shark2.ko] undefined!
ERROR: "led_classdev_unregister" [drivers/media/radio/shark2.ko] undefined!

which is seen if RADIO_SHARK2 is enabled, but LEDS_CLASS is not.

Since RADIO_SHARK2 depends on NEW_LEDS and LEDS_CLASS, select both if
it is enabled.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/media/radio/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/radio/Kconfig b/drivers/media/radio/Kconfig
index 8090b87..bee4bee 100644
--- a/drivers/media/radio/Kconfig
+++ b/drivers/media/radio/Kconfig
@@ -77,6 +77,8 @@ config RADIO_SHARK
 config RADIO_SHARK2
 	tristate "Griffin radioSHARK2 USB radio receiver"
 	depends on USB
+	select NEW_LEDS
+	select LEDS_CLASS
 	---help---
 	  Choose Y here if you have this radio receiver.
 
-- 
1.7.9.7


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-23 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 15:16 [PATCH] media/radio/shark2: Fix build error caused by missing dependencies Guenter Roeck
2012-08-22 15:22 ` Hans de Goede
2012-08-22 15:29   ` Guenter Roeck
2012-08-22 18:57     ` Arnd Bergmann
2012-08-23 10:05       ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).