From patchwork Wed Aug 22 15:16:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 1362061 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 002683FD40 for ; Wed, 22 Aug 2012 15:16:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932718Ab2HVPQi (ORCPT ); Wed, 22 Aug 2012 11:16:38 -0400 Received: from mail.active-venture.com ([67.228.131.205]:49982 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757362Ab2HVPQh (ORCPT ); Wed, 22 Aug 2012 11:16:37 -0400 Received: (qmail 58679 invoked by uid 399); 22 Aug 2012 15:16:30 -0000 X-Virus-Scan: Scanned by ClamAV 0.97.2 (no viruses); Wed, 22 Aug 2012 10:16:30 -0500 Received: from unknown (HELO localhost) (guenter@roeck-us.net@108.223.40.66) by mail.active-venture.com with ESMTPAM; 22 Aug 2012 15:16:30 -0000 X-Originating-IP: 108.223.40.66 X-Sender: guenter@roeck-us.net From: Guenter Roeck To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans de Goede , linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH] media/radio/shark2: Fix build error caused by missing dependencies Date: Wed, 22 Aug 2012 08:16:25 -0700 Message-Id: <1345648585-5176-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 1.7.9.7 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Signed-off-by: Guenter Roeck --- 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.