From patchwork Thu Jun 3 15:49:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Ringel X-Patchwork-Id: 104114 X-Patchwork-Delegate: dougsland@redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o53FpDUN020250 for ; Thu, 3 Jun 2010 15:51:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755238Ab0FCPvM (ORCPT ); Thu, 3 Jun 2010 11:51:12 -0400 Received: from mail-in-17.arcor-online.net ([151.189.21.57]:46770 "EHLO mail-in-17.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754302Ab0FCPvL (ORCPT ); Thu, 3 Jun 2010 11:51:11 -0400 Received: from mail-in-05-z2.arcor-online.net (mail-in-05-z2.arcor-online.net [151.189.8.17]) by mx.arcor.de (Postfix) with ESMTP id A5805CC0CF; Thu, 3 Jun 2010 17:51:08 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id 91D2A73EB4; Thu, 3 Jun 2010 17:51:08 +0200 (CEST) Received: from localhost.localdomain (dslb-188-102-105-204.pools.arcor-ip.net [188.102.105.204]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-08.arcor-online.net (Postfix) with ESMTPA id 3399820545D; Thu, 3 Jun 2010 17:51:08 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-08.arcor-online.net 3399820545D DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1275580268; bh=80Rw8faGYsVSOHmt1XXC6t81FjMhASc54EJCab4gWuQ=; h=From:To:Cc:Subject:Date:Message-Id; b=a3uJeyNsABDCe4ERLAMoj5yoDywZCalGkKFduSko9AMOuF1v9X5hIhVn2sqtH1hWU DSK1A5So4KNAyLiJtj69NYe7W02Da+m3ri/3LBTzSY41H6W5lb1FvmrJ7oHzc6Oi+f bLAkrb67aYuejZeWnxpEZJW4Nbpx82KJFxnPP2I0= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, d.belimov@gmail.com, Stefan Ringel Subject: [PATCH] tm6000: bugfix unkown symbol tm6000_debug Date: Thu, 3 Jun 2010 17:49:18 +0200 Message-Id: <1275580158-18878-1-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.7.0.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 03 Jun 2010 15:51:14 +0000 (UTC) diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index 2fbf4f6..350770e 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c @@ -29,6 +29,8 @@ #include #include +static int tm6000_debug; + #define USB_TIMEOUT 5*HZ /* ms */ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, diff --git a/drivers/staging/tm6000/tm6000-dvb.c b/drivers/staging/tm6000/tm6000-dvb.c index 3ccc466..34dc8e5 100644 --- a/drivers/staging/tm6000/tm6000-dvb.c +++ b/drivers/staging/tm6000/tm6000-dvb.c @@ -38,9 +38,9 @@ MODULE_SUPPORTED_DEVICE("{{Trident, tm5600}," "{{Trident, tm6000}," "{{Trident, tm6010}"); -static int debug +static int tm6000_debug; -module_param(debug, int, 0644); +module_param_named(debug, tm6000_debug, int, 0644); MODULE_PARM_DESC(debug, "enable debug message"); static inline void print_err_status(struct tm6000_core *dev, diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 1e348ac..1663dd2 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -55,7 +55,7 @@ static unsigned int vid_limit = 16; /* Video memory limit, in Mb */ static int video_nr = -1; /* /dev/videoN, -1 for autodetect */ /* Debug level */ -int tm6000_debug; +static int tm6000_debug; /* supported controls */ static struct v4l2_queryctrl tm6000_qctrl[] = { diff --git a/drivers/staging/tm6000/tm6000.h b/drivers/staging/tm6000/tm6000.h index 4b65094..ed7fece 100644 --- a/drivers/staging/tm6000/tm6000.h +++ b/drivers/staging/tm6000/tm6000.h @@ -318,8 +318,6 @@ int tm6000_queue_init(struct tm6000_core *dev); /* Debug stuff */ -extern int tm6000_debug; - #define dprintk(dev, level, fmt, arg...) do {\ if (tm6000_debug & level) \ printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \