 +		goto error;
 +
 +	/* program frequency control */
-+	ret = af9033_set_freq_ctrl(state, params->u.ofdm.bandwidth);
++	ret = af9033_set_freq_ctrl(state);
 +	if (ret)
 +		goto error;
 +

 obj-$(CONFIG_DVB_STV0288) += stv0288.o
diff --git a/drivers/media/dvb/frontends/af9033.c b/drivers/media/dvb/frontends/af9033.c
new file mode 100644
index 0000000..0da292a
--- /dev/null
+++ b/drivers/media/dvb/frontends/af9033.c
@@ -0,0 +1,1668 @@
+/*
+ * Afatech AF9033 demodulator driver
+ *

+		sizeof(buf));
+}
+
+static int af9033_set_freq_ctrl(struct af9033_state *state)
+{
+	int ret;
+	u8 buf[3], tmp;
