[media] omap3isp: get entity ID using media_entity_id()
Accessing media_entity ID should now use media_entity_id() macro to obtain the entity ID, as a next patch will remove the .id field from struct media_entity . So, get rid of it, otherwise the omap3isp driver will fail to build. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
1302d39c4a
commit
e0077cfdee
@@ -975,6 +975,7 @@ static int isp_pipeline_disable(struct isp_pipeline *pipe)
|
||||
struct v4l2_subdev *subdev;
|
||||
int failure = 0;
|
||||
int ret;
|
||||
u32 id;
|
||||
|
||||
/*
|
||||
* We need to stop all the modules after CCDC first or they'll
|
||||
@@ -1027,8 +1028,10 @@ static int isp_pipeline_disable(struct isp_pipeline *pipe)
|
||||
if (ret) {
|
||||
dev_info(isp->dev, "Unable to stop %s\n", subdev->name);
|
||||
isp->stop_failure = true;
|
||||
if (subdev == &isp->isp_prev.subdev)
|
||||
isp->crashed |= 1U << subdev->entity.id;
|
||||
if (subdev == &isp->isp_prev.subdev) {
|
||||
id = media_entity_id(&subdev->entity);
|
||||
isp->crashed |= 1U << id;
|
||||
}
|
||||
failure = -ETIMEDOUT;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user