From patchwork Fri Jan 15 12:08:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Egger X-Patchwork-Id: 73147 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0FCFiIk001661 for ; Fri, 15 Jan 2010 12:15:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757437Ab0AOMPd (ORCPT ); Fri, 15 Jan 2010 07:15:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757434Ab0AOMPd (ORCPT ); Fri, 15 Jan 2010 07:15:33 -0500 Received: from faui40.informatik.uni-erlangen.de ([131.188.34.40]:59433 "EHLO faui40.informatik.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757429Ab0AOMPc (ORCPT ); Fri, 15 Jan 2010 07:15:32 -0500 X-Greylist: delayed 414 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Jan 2010 07:15:32 EST Received: from faui49h (faui49h.informatik.uni-erlangen.de [131.188.42.58]) by faui40.informatik.uni-erlangen.de (Postfix) with SMTP id 28D185F0E7; Fri, 15 Jan 2010 13:08:36 +0100 (MET) Received: by faui49h (sSMTP sendmail emulation); Fri, 15 Jan 2010 13:08:57 +0100 Date: Fri, 15 Jan 2010 13:08:57 +0100 From: Christoph Egger To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: siccegge@stud.informatik.uni-erlangen.de, Reinhard.Tartler@informatik.uni-erlangen.de Subject: [PATCH] obsolete config in kernel source (DVB_DIBCOM_DEBUG) Message-ID: <20100115120857.GA3321@faui49.informatik.uni-erlangen.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From 34bc227926b5554a881799fe69ce5323e2042352 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 15 Jan 2010 12:49:41 +0100 Subject: [PATCH 4/4] remove obsolete conditionalizing on DVB_DIBCOM_DEBUG The dibusb driver was dropped in 2005 in favour of the generic dvb-usb system. However the DEBUG option wasn't removed from all parts of the code which is fixed by this patch Signed-off-by: Christoph Egger --- drivers/media/dvb/frontends/dib3000mb.c | 11 ----------- drivers/media/dvb/frontends/dib3000mb_priv.h | 5 ----- 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/drivers/media/dvb/frontends/dib3000mb.c b/drivers/media/dvb/frontends/dib3000mb.c index ad4c8cf..5fdb6de 100644 --- a/drivers/media/dvb/frontends/dib3000mb.c +++ b/drivers/media/dvb/frontends/dib3000mb.c @@ -38,11 +38,6 @@ #define DRIVER_DESC "DiBcom 3000M-B DVB-T demodulator" #define DRIVER_AUTHOR "Patrick Boettcher, patrick.boettcher@desy.de" -#ifdef CONFIG_DVB_DIBCOM_DEBUG -static int debug; -module_param(debug, int, 0644); -MODULE_PARM_DESC(debug, "set debugging level (1=info,2=xfer,4=setfe,8=getfe (|-able))."); -#endif #define deb_info(args...) dprintk(0x01,args) #define deb_i2c(args...) dprintk(0x02,args) #define deb_srch(args...) dprintk(0x04,args) @@ -51,12 +46,6 @@ MODULE_PARM_DESC(debug, "set debugging level (1=info,2=xfer,4=setfe,8=getfe (|-a #define deb_setf(args...) dprintk(0x04,args) #define deb_getf(args...) dprintk(0x08,args) -#ifdef CONFIG_DVB_DIBCOM_DEBUG -static int debug; -module_param(debug, int, 0644); -MODULE_PARM_DESC(debug, "set debugging level (1=info,2=i2c,4=srch (|-able))."); -#endif - static int dib3000_read_reg(struct dib3000_state *state, u16 reg) { u8 wb[] = { ((reg >> 8) | 0x80) & 0xff, reg & 0xff }; diff --git a/drivers/media/dvb/frontends/dib3000mb_priv.h b/drivers/media/dvb/frontends/dib3000mb_priv.h index 1a12747..806f5b0 100644 --- a/drivers/media/dvb/frontends/dib3000mb_priv.h +++ b/drivers/media/dvb/frontends/dib3000mb_priv.h @@ -37,12 +37,7 @@ /* debug */ -#ifdef CONFIG_DVB_DIBCOM_DEBUG -#define dprintk(level,args...) \ - do { if ((debug & level)) { printk(args); } } while (0) -#else #define dprintk(args...) do { } while (0) -#endif /* mask for enabling a specific pid for the pid_filter */ #define DIB3000_ACTIVATE_PID_FILTERING (0x2000) -- 1.6.3.3