From 2d71c946d33cafd635f3bd991d2d562796f93a56 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Fri, 10 Jun 2016 09:44:04 +0200 Subject: [PATCH] compile fixes --- frontends/drxk_hard.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontends/drxk_hard.c b/frontends/drxk_hard.c index 85fc35e..3439325 100644 --- a/frontends/drxk_hard.c +++ b/frontends/drxk_hard.c @@ -4868,7 +4868,6 @@ static int drxk_set_parameters (struct dvb_frontend *fe, { #ifndef USE_API3 struct dtv_frontend_properties *p = &fe->dtv_property_cache; - u32 delsys = p->delivery_system, old_delsys; #endif struct drxk_state *state = fe->demodulator_priv; u32 IF; @@ -4896,7 +4895,11 @@ static int drxk_set_parameters (struct dvb_frontend *fe, return 0; } +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0)) static int drxk_c_get_frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) +#else +static int drxk_c_get_frontend(struct dvb_frontend *fe) +#endif { //struct drxk_state *state = fe->demodulator_priv; //printk("%s\n", __FUNCTION__); @@ -4990,7 +4993,11 @@ static int drxk_t_sleep(struct dvb_frontend* fe) return 0; } +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0)) static int drxk_t_get_frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) +#else +static int drxk_t_get_frontend(struct dvb_frontend *fe) +#endif { //struct drxk_state *state = fe->demodulator_priv; //printk("%s\n", __FUNCTION__);