From: Devin Heitmueller Date: Mon, 21 Dec 2009 02:50:02 +0000 (-0300) Subject: V4L/DVB: cx18-alsa: codingstyle cleanup X-Git-Tag: v3.12-rc1~11293^2~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71036ef26b0026742c8ab79a54937aac1439350d;p=kernel%2Fkernel-generic.git V4L/DVB: cx18-alsa: codingstyle cleanup Remove some dead code and make a PCM specific module debug parameter to avoid an extern reference. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx18/cx18-alsa-pcm.c b/drivers/media/video/cx18/cx18-alsa-pcm.c index 371dfb8..2d25c6f 100644 --- a/drivers/media/video/cx18/cx18-alsa-pcm.c +++ b/drivers/media/video/cx18/cx18-alsa-pcm.c @@ -37,11 +37,13 @@ #include "cx18-fileops.h" #include "cx18-alsa.h" -extern int cx18_alsa_debug; +static unsigned int pcm_debug; +module_param(pcm_debug, int, 0644); +MODULE_PARM_DESC(pcm_debug, "enable debug messages for pcm"); #define dprintk(fmt, arg...) do { \ - if (cx18_alsa_debug) \ - printk(KERN_INFO "cx18-alsa %s: " fmt, \ + if (pcm_debug) \ + printk(KERN_INFO "cx18-alsa-pcm %s: " fmt, \ __func__, ##arg); \ } while (0)