]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkisp1: capture: Initialize entity before video device
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 24 Feb 2022 13:57:32 +0000 (13:57 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 06:38:29 +0000 (07:38 +0100)
commite82d7d2efa2a9dba25fd346cb9477a49e0a1fa06
tree301bf6e290c7c8b1543c074d2a50e5d169ae5988
parentaa4c89f410c442789bb9f89b49b7edc84e350082
media: rkisp1: capture: Initialize entity before video device

The media_entity embedded in the video_device needs to be initialized
before registering the video_device. Do so.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c