Commit daf77bd9 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] tuner-core: fix compilation if the media controller is not defined

drivers/media/v4l2-core/tuner-core.c:440:7: error: 'struct v4l2_subdev' has no member named 'entity'
     t->sd.entity.name = t->name;
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 63ba8c75
......@@ -437,7 +437,9 @@ static void set_type(struct i2c_client *c, unsigned int type,
t->name = analog_ops->info.name;
}
#ifdef CONFIG_MEDIA_CONTROLLER
t->sd.entity.name = t->name;
#endif
tuner_dbg("type set to %s\n", t->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment