From patchwork Tue Jan 7 17:55:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 3449321 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 137699F2E9 for ; Tue, 7 Jan 2014 17:55:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF1F620144 for ; Tue, 7 Jan 2014 17:55:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 56076200F3 for ; Tue, 7 Jan 2014 17:55:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753605AbaAGRzq (ORCPT ); Tue, 7 Jan 2014 12:55:46 -0500 Received: from merlin.infradead.org ([205.233.59.134]:37703 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753215AbaAGRzn (ORCPT ); Tue, 7 Jan 2014 12:55:43 -0500 Received: from static-50-53-39-157.bvtn.or.frontiernet.net ([50.53.39.157] helo=dragon.site) by merlin.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0asP-00071z-Dv; Tue, 07 Jan 2014 17:55:41 +0000 Message-ID: <52CC3F9C.8090407@infradead.org> Date: Tue, 07 Jan 2014 09:55:40 -0800 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Stephen Rothwell , linux-next@vger.kernel.org CC: linux-kernel@vger.kernel.org, Luca Risolia , Mauro Carvalho Chehab , linux-media Subject: [PATCH -next] staging/media: fix sn9c102 dependencies References: <20140107173816.003dc67433cea097c097eb74@canb.auug.org.au> In-Reply-To: <20140107173816.003dc67433cea097c097eb74@canb.auug.org.au> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix numerous build errors when USB is not enabled. Examples: drivers/built-in.o: In function `sn9c102_stop_transfer': sn9c102_core.c:(.text+0xccbd0a): undefined reference to `usb_kill_urb' sn9c102_core.c:(.text+0xccbd15): undefined reference to `usb_free_urb' sn9c102_core.c:(.text+0xccbd4c): undefined reference to `usb_set_interface' drivers/built-in.o: In function `sn9c102_urb_complete': sn9c102_core.c:(.text+0xccdca5): undefined reference to `usb_submit_urb' drivers/built-in.o: In function `sn9c102_release_resources': sn9c102_core.c:(.text+0xcce62b): undefined reference to `usb_put_dev' drivers/built-in.o: In function `sn9c102_match_id': (.text+0xcce9d7): undefined reference to `usb_ifnum_to_if' drivers/built-in.o: In function `sn9c102_match_id': (.text+0xcce9de): undefined reference to `usb_match_id' drivers/built-in.o: In function `sn9c102_write_regs': (.text+0xccea7a): undefined reference to `usb_control_msg' drivers/built-in.o: In function `sn9c102_open': sn9c102_core.c:(.text+0xcd17b4): undefined reference to `usb_altnum_to_altsetting' sn9c102_core.c:(.text+0xcd1851): undefined reference to `usb_alloc_urb' drivers/built-in.o: In function `sn9c102_read_reg': (.text+0xcd1fdf): undefined reference to `usb_control_msg' drivers/built-in.o: In function `sn9c102_usb_probe': sn9c102_core.c:(.text+0xcd275d): undefined reference to `usb_get_dev' drivers/built-in.o: In function `sn9c102_usb_driver_init': sn9c102_core.c:(.init.text+0x3e4eb): undefined reference to `usb_register_driver' drivers/built-in.o: In function `sn9c102_usb_driver_exit': sn9c102_core.c:(.exit.text+0x7226): undefined reference to `usb_deregister' Signed-off-by: Randy Dunlap Cc: Luca Risolia Cc: Mauro Carvalho Chehab --- drivers/staging/media/sn9c102/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20140107.orig/drivers/staging/media/sn9c102/Kconfig +++ linux-next-20140107/drivers/staging/media/sn9c102/Kconfig @@ -1,6 +1,6 @@ config USB_SN9C102 tristate "USB SN9C1xx PC Camera Controller support (DEPRECATED)" - depends on VIDEO_V4L2 + depends on VIDEO_V4L2 && USB ---help--- This driver is DEPRECATED, please use the gspca sonixb and sonixj modules instead.