[media] dvbdev: use adapter arg for dvb_create_media_graph()
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 13:49:04 +0000 (10:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 14:25:38 +0000 (11:25 -0300)
Instead of using media_dev argument for dvb_create_media_graph(),
use the adapter.

That allows to create a stub for this function, if compiled
without DVB support, avoiding to add extra if's at the drivers.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/common/siano/smsdvb-main.c
drivers/media/dvb-core/dvbdev.c
drivers/media/dvb-core/dvbdev.h
drivers/media/usb/cx231xx/cx231xx-dvb.c
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
drivers/media/usb/dvb-usb/dvb-usb-dvb.c

index dd3c151..387db14 100644 (file)
@@ -1185,7 +1185,7 @@ static int smsdvb_hotplug(struct smscore_device_t *coredev,
        if (smsdvb_debugfs_create(client) < 0)
                pr_info("failed to create debugfs node\n");
 
-       dvb_create_media_graph(coredev->media_dev);
+       dvb_create_media_graph(&client->adapter);
 
        pr_info("DVB interface registered.\n");
        return 0;
Simple merge
Simple merge