diff options
author | Patrick Boettcher <devnull@localhost> | 2005-01-24 17:53:51 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-01-24 17:53:51 +0000 |
commit | 3569e234dd89bedeaa00e3a4ea8db2f0c5135210 (patch) | |
tree | f406b7983b738e52fe40c1b1aadd256d6caf3cb9 /linux/drivers/media | |
parent | 588d0f9cc7aa0863fe8e84e16aa98e847e6d214d (diff) | |
download | mediapointer-dvb-s2-3569e234dd89bedeaa00e3a4ea8db2f0c5135210.tar.gz mediapointer-dvb-s2-3569e234dd89bedeaa00e3a4ea8db2f0c5135210.tar.bz2 |
- using module_param_named instead of making a global and module_param (thanks to Johannes)
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c index 36f74ec41..0fdad7963 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c @@ -27,15 +27,13 @@ #include <linux/moduleparam.h> /* debug */ -static int debug; -module_param(debug, int, 0644); +int dvb_dibusb_debug; +module_param_named(debug, dvb_dibusb_debug, int, 0644); MODULE_PARM_DESC(debug, "set debugging level (1=info,2=xfer,4=alotmore,8=ts,16=err,32=rc (|-able))." -#ifdef CONFIG_DVB_DIBCOM_DEBUG +#ifndef CONFIG_DVB_DIBCOM_DEBUG " (debugging is not enabled)" #endif ); -int dvb_dibusb_debug = 0; - static int pid_parse; module_param(pid_parse, int, 0644); @@ -415,7 +413,6 @@ static int dibusb_probe(struct usb_interface *intf, dib->dibdev = dibdev; /* store parameters to structures */ - dvb_dibusb_debug = debug; dib->rc_query_interval = rc_query_interval; dib->pid_parse = pid_parse; |