Subject: frontend: lgdt3302: remove KERNEL_VERSION cruft From: Michael Krufky Removed #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,10) Signed-off-by: Michael Krufky Signed-off-by: Johannes Stezenbach drivers/media/dvb/frontends/lgdt3302.c | 10 +--------- 1 files changed, 1 insertion(+), 9 deletions(-) Index: linux-2.6.12/drivers/media/dvb/frontends/lgdt3302.c =================================================================== --- linux-2.6.12.orig/drivers/media/dvb/frontends/lgdt3302.c 2005-07-11 21:32:22.000000000 +0200 +++ linux-2.6.12/drivers/media/dvb/frontends/lgdt3302.c 2005-07-11 22:02:25.000000000 +0200 @@ -1,5 +1,5 @@ /* - * $Id: lgdt3302.c,v 1.2 2005/06/28 23:50:48 mkrufky Exp $ + * $Id: lgdt3302.c,v 1.5 2005/07/07 03:47:15 mkrufky Exp $ * * Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM * @@ -34,7 +34,6 @@ * */ -#include #include #include #include @@ -208,8 +207,6 @@ static int lgdt3302_set_parameters(struc struct lgdt3302_state* state = (struct lgdt3302_state*) fe->demodulator_priv; -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,10) - /* Use 50MHz parameter values from spec sheet since xtal is 50 */ static u8 top_ctrl_cfg[] = { TOP_CONTROL, 0x03 }; static u8 vsb_freq_cfg[] = { VSB_CARRIER_FREQ0, 0x00, 0x87, 0x8e, 0x01 }; @@ -301,9 +298,6 @@ static int lgdt3302_set_parameters(struc lgdt3302_SwReset(state); state->current_modulation = param->u.vsb.modulation; } -#else - printk("lgdt3302: %s: you need a newer kernel for this, sorry\n",__FUNCTION__); -#endif /* Change only if we are actually changing the channel */ if (state->current_frequency != param->frequency) { @@ -392,14 +386,12 @@ static int lgdt3302_read_status(struct d else return 0; break; -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,10) case VSB_8: if ((buf[0] & 0x80) == 0x80) *status |= FE_HAS_CARRIER; else return 0; break; -#endif default: printk("KERN_WARNING lgdt3302: %s: Modulation set to unsupported value\n", __FUNCTION__); }