[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: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Mauro Carvalho Chehab 2015-02-18 12:04:05 -03:00
parent 63ba8c7518
commit daf77bd9c2

View file

@ -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);