diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-28 09:13:58 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-28 09:13:58 -0200 |
commit | 9ad76b12c1e328a6fde30c9f9a8e31699fdce0f7 (patch) | |
tree | e4006dee1fd72de71035ad1b03f104d6eef1c1dc /linux/drivers/media/video/mxb.c | |
parent | 50838b2d1ef4c909e5a8e47fbacb46a08ee2082d (diff) | |
download | mediapointer-dvb-s2-9ad76b12c1e328a6fde30c9f9a8e31699fdce0f7.tar.gz mediapointer-dvb-s2-9ad76b12c1e328a6fde30c9f9a8e31699fdce0f7.tar.bz2 |
mxb: fix to load the proper i2c modules
From: Michael Hunold <hunold@linuxtv.org>
Change order of module requests, so that tuner module is loaded at the end,
because the tuner module probes multiple i2c addresses and might grab an i2c
address that is not a tuner but something else.
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/mxb.c')
-rw-r--r-- | linux/drivers/media/video/mxb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/mxb.c b/linux/drivers/media/video/mxb.c index 37d3f33b7..928a3ab91 100644 --- a/linux/drivers/media/video/mxb.c +++ b/linux/drivers/media/video/mxb.c @@ -161,10 +161,6 @@ static int mxb_probe(struct saa7146_dev* dev) printk("mxb: saa7111 i2c module not available.\n"); return -ENODEV; } - if ((result = request_module("tuner")) < 0) { - printk("mxb: tuner i2c module not available.\n"); - return -ENODEV; - } if ((result = request_module("tea6420")) < 0) { printk("mxb: tea6420 i2c module not available.\n"); return -ENODEV; @@ -177,6 +173,10 @@ static int mxb_probe(struct saa7146_dev* dev) printk("mxb: tda9840 i2c module not available.\n"); return -ENODEV; } + if ((result = request_module("tuner")) < 0) { + printk("mxb: tuner i2c module not available.\n"); + return -ENODEV; + } mxb = kzalloc(sizeof(struct mxb), GFP_KERNEL); if( NULL == mxb ) { |