From bd8ed70482e5f5105a72f29471cf552a8dfd73bf Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Thu, 28 Oct 2004 10:45:22 +0000 Subject: - fix for module_param_array() for kernels > 2.6.9 --- linux/drivers/media/dvb/frontends/mt352.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux') 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 +#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" -- cgit v1.2.3