[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:
parent
63ba8c7518
commit
daf77bd9c2
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue