From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtpo01.poczta.onet.pl ([213.180.142.132]:33988 "EHLO smtpo01.poczta.onet.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753581Ab1JRUD5 (ORCPT ); Tue, 18 Oct 2011 16:03:57 -0400 Date: Tue, 18 Oct 2011 22:03:52 +0200 From: Piotr Chmura To: Mauro Carvalho Chehab Cc: Devin Heitmueller , Stefan Richter , Greg KH , Patrick Dickey , LMML , devel@driverdev.osuosl.org Subject: [RESEND PATCH 11/14] staging/media/as102: fix compile warning about unused function Message-ID: <20111018220352.3179feb1@darkstar> In-Reply-To: <20111018111336.62af07ce.chmooreck@poczta.onet.pl> References: <4E7F1FB5.5030803@gmail.com> <4E7FF0A0.7060004@gmail.com> <20110927094409.7a5fcd5a@stein> <20110927174307.GD24197@suse.de> <20110927213300.6893677a@stein> <4E999733.2010802@poczta.onet.pl> <4E99F2FC.5030200@poczta.onet.pl> <20111016105731.09d66f03@stein> <4E9ADFAE.8050208@redhat.com> <20111018094647.d4982eb2.chmooreck@poczta.onet.pl> <20111018111336.62af07ce.chmooreck@poczta.onet.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Patch taken from http://kernellabs.com/hg/~dheitmueller/v4l-dvb-as102-2/ Original source and comment: # HG changeset patch # User Devin Heitmueller # Date 1267319685 18000 # Node ID 84b93826c0a19efa114a6808165f91390cb86daa # Parent 22ef1bdca69a2781abf397c53a0f7f6125f5359a as102: fix compile warning about unused function From: Devin Heitmueller The function in question is only used on old kernels, so we had the call to the function #ifdef'd, but the definition of the function was stil being included. Priority: normal Signed-off-by: Devin Heitmueller Signed-off-by: Piotr Chmura diff --git linux/drivers/staging/media/as102/as102_fe.c linuxb/drivers/staging/media/as102/as102_fe.c --- linux/drivers/staging/media/as102/as102_fe.c +++ linuxb/drivers/staging/media/as102/as102_fe.c @@ -32,6 +32,7 @@ static void as102_fe_copy_tune_parameters(struct as10x_tune_args *dst, struct dvb_frontend_parameters *src); +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)) static void as102_fe_release(struct dvb_frontend *fe) { struct as102_dev_t *dev; @@ -42,7 +43,6 @@ if (dev == NULL) return; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)) if (mutex_lock_interruptible(&dev->bus_adap.lock)) return; @@ -50,7 +50,6 @@ as10x_cmd_turn_off(&dev->bus_adap); mutex_unlock(&dev->bus_adap.lock); -#endif /* release frontend callback ops */ memset(&fe->ops, 0, sizeof(struct dvb_frontend_ops)); @@ -66,7 +65,6 @@ LEAVE(); } -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)) static int as102_fe_init(struct dvb_frontend *fe) { int ret = 0;