]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
V4L/DVB (4894): Mxb: fix to load the proper i2c modules
authorMichael Hunold <hunold@linuxtv.org>
Tue, 28 Nov 2006 11:13:58 +0000 (08:13 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Dec 2006 11:05:26 +0000 (09:05 -0200)
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>
drivers/media/video/mxb.c

index b0aea4002d1124235922f2396553e43f0079092b..152cc6b3e1521232a510442a8e6b980585c6ec75 100644 (file)
@@ -160,10 +160,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;
@@ -176,6 +172,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 ) {