diff options
author | Michael Hunold <hunold@linuxtv.org> | 2006-11-28 06:13:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 06:05:26 -0500 |
commit | a08cc44ec12e0a994ee85ba365315dbee982d6a7 (patch) | |
tree | 132abc2011afa38c96dbab2fc859d9f47ef77a93 | |
parent | 036171e75ef866b4fd8650c5b890359482ba2a4c (diff) |
V4L/DVB (4894): Mxb: fix to load the proper i2c modules
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/mxb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/mxb.c b/drivers/media/video/mxb.c index b0aea4002d11..152cc6b3e152 100644 --- a/drivers/media/video/mxb.c +++ b/drivers/media/video/mxb.c | |||
@@ -160,10 +160,6 @@ static int mxb_probe(struct saa7146_dev* dev) | |||
160 | printk("mxb: saa7111 i2c module not available.\n"); | 160 | printk("mxb: saa7111 i2c module not available.\n"); |
161 | return -ENODEV; | 161 | return -ENODEV; |
162 | } | 162 | } |
163 | if ((result = request_module("tuner")) < 0) { | ||
164 | printk("mxb: tuner i2c module not available.\n"); | ||
165 | return -ENODEV; | ||
166 | } | ||
167 | if ((result = request_module("tea6420")) < 0) { | 163 | if ((result = request_module("tea6420")) < 0) { |
168 | printk("mxb: tea6420 i2c module not available.\n"); | 164 | printk("mxb: tea6420 i2c module not available.\n"); |
169 | return -ENODEV; | 165 | return -ENODEV; |
@@ -176,6 +172,10 @@ static int mxb_probe(struct saa7146_dev* dev) | |||
176 | printk("mxb: tda9840 i2c module not available.\n"); | 172 | printk("mxb: tda9840 i2c module not available.\n"); |
177 | return -ENODEV; | 173 | return -ENODEV; |
178 | } | 174 | } |
175 | if ((result = request_module("tuner")) < 0) { | ||
176 | printk("mxb: tuner i2c module not available.\n"); | ||
177 | return -ENODEV; | ||
178 | } | ||
179 | 179 | ||
180 | mxb = kzalloc(sizeof(struct mxb), GFP_KERNEL); | 180 | mxb = kzalloc(sizeof(struct mxb), GFP_KERNEL); |
181 | if( NULL == mxb ) { | 181 | if( NULL == mxb ) { |