[media] dvb_net: add support for DVB net node at the media controller
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 3 Jan 2015 01:53:58 +0000 (22:53 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 13 Feb 2015 23:10:13 +0000 (21:10 -0200)
Make the dvb core network support aware of the media controller and
register the corresponding devices.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-core/dvb_net.c

index 686d3277dad123113d5464b1f00bb4e5b3d8b069..40990058b4bcbea309826ca360272c53a0c02b47 100644 (file)
@@ -1462,14 +1462,16 @@ static const struct file_operations dvb_net_fops = {
        .llseek = noop_llseek,
 };
 
-static struct dvb_device dvbdev_net = {
+static const struct dvb_device dvbdev_net = {
        .priv = NULL,
        .users = 1,
        .writers = 1,
+#if defined(CONFIG_MEDIA_CONTROLLER_DVB)
+       .name = "dvb net",
+#endif
        .fops = &dvb_net_fops,
 };
 
-
 void dvb_net_release (struct dvb_net *dvbnet)
 {
        int i;