summaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-04-01 14:13:36 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-09 14:44:59 -0300
commit8e8a5ac763d057fae50f2f7cc4fc830c5f815d26 (patch)
treeb8d394f67d3713f86e09f989daa2caa45fb77d8a /drivers/media/dvb
parente898ef627214627883ed950ef3da5fa5788beb41 (diff)
[media] af9035: add log writing if unsupported Xtal freq is given
Supports currently only 12 MHz Xtals. It is better to print log and not to attach frontend in that case. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/af9033.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/af9033.c b/drivers/media/dvb/frontends/af9033.c
index 40ef4b1faebc..277255481607 100644
--- a/drivers/media/dvb/frontends/af9033.c
+++ b/drivers/media/dvb/frontends/af9033.c
@@ -667,6 +667,13 @@ struct dvb_frontend *af9033_attach(const struct af9033_config *config,
state->i2c = i2c;
memcpy(&state->cfg, config, sizeof(struct af9033_config));
+ if (state->cfg.clock != 12000000) {
+ printk(KERN_INFO "af9033: unsupported clock=%d, only " \
+ "12000000 Hz is supported currently\n",
+ state->cfg.clock);
+ goto err;
+ }
+
/* firmware version */
ret = af9033_rd_regs(state, 0x0083e9, &buf[0], 4);
if (ret < 0)