From: Laurent Pinchart Date: Mon, 6 Jul 2020 18:36:01 +0000 (+0200) Subject: media: ti-vpe: cal: Get struct device without going through v4l2_device X-Git-Tag: Ubuntu-5.10.0-12.13~2169^2~135 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=281736ef5545bb07b3291d00f655d6f884df9f80;p=mirror_ubuntu-hirsute-kernel.git media: ti-vpe: cal: Get struct device without going through v4l2_device Instead of retrieving the struct device for the platform device from the v4l2_device, get it from the platform device directly. This prepares for cleanups related to v4l2_device handling. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Benoit Parrot Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c index 028479498c07..22679baec364 100644 --- a/drivers/media/platform/ti-vpe/cal.c +++ b/drivers/media/platform/ti-vpe/cal.c @@ -1868,7 +1868,7 @@ static int cal_complete_ctx(struct cal_ctx *ctx) q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; q->lock = &ctx->mutex; q->min_buffers_needed = 3; - q->dev = ctx->v4l2_dev.dev; + q->dev = &ctx->cal->pdev->dev; ret = vb2_queue_init(q); if (ret)