media: cx231xx: Use frontend i2c adapter with tuner
authorBrad Love <brad@nextdimension.cc>
Tue, 6 Mar 2018 19:14:57 +0000 (14:14 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Mar 2018 08:59:43 +0000 (03:59 -0500)
Utilize the i2c mux adapter returned by the frontend.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/cx231xx/cx231xx-dvb.c

index 7c3863a..680c175 100644 (file)
@@ -1221,7 +1221,7 @@ static int dvb_init(struct cx231xx *dev)
                info.platform_data = &si2157_config;
                request_module("si2157");
 
-               client = i2c_new_device(tuner_i2c, &info);
+               client = i2c_new_device(adapter, &info);
                if (client == NULL || client->dev.driver == NULL) {
                        module_put(dvb->i2c_client_demod[0]->dev.driver->owner);
                        i2c_unregister_device(dvb->i2c_client_demod[0]);