summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-10-28 10:45:22 +0000
committerMichael Hunold <devnull@localhost>2004-10-28 10:45:22 +0000
commitbd8ed70482e5f5105a72f29471cf552a8dfd73bf (patch)
tree2342cb4f02b6cf6c282c62a441c3ff1f3db2c813 /linux/drivers/media/dvb/frontends
parent5acd6ac29aec43d1564ff8620e55241315515dd1 (diff)
downloadmediapointer-dvb-s2-bd8ed70482e5f5105a72f29471cf552a8dfd73bf.tar.gz
mediapointer-dvb-s2-bd8ed70482e5f5105a72f29471cf552a8dfd73bf.tar.bz2
- fix for module_param_array() for kernels > 2.6.9
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/mt352.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt352.c b/linux/drivers/media/dvb/frontends/mt352.c
index 153880ed5..58606728b 100644
--- a/linux/drivers/media/dvb/frontends/mt352.c
+++ b/linux/drivers/media/dvb/frontends/mt352.c
@@ -53,7 +53,12 @@ static int force_card_count = 0;
module_param(debug, int, 0644);
MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))
module_param_array(force_card, int, force_card_count, 0444);
+#else
+module_param_array(force_card, int, &force_card_count, 0444);
+#endif
MODULE_PARM_DESC(force_card, "Forces the type of each attached mt352 frontend.\n\t"
"If your card is not autodetected, then you must specify its type here.\n\t"
"Valid card types are: 0 == AVDVBT771, 1 == TUA6034, 2 == TDTC9251DH01C,\n\t"