OSDN Git Service

drm/rockchip: vop2: initialize possible_crtcs properly
authorMichael Riesch <michael.riesch@wolfvision.net>
Tue, 24 Jan 2023 05:47:01 +0000 (06:47 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 5 Feb 2023 14:21:34 +0000 (15:21 +0100)
commit368419a2d429e2438bef333959732c640310bdc7
treef8b4955bde01966fc3e45405e3e3b970a644a71c
parent9bb35d4c3230803345d5218676a7325b26823209
drm/rockchip: vop2: initialize possible_crtcs properly

The variable possible_crtcs is only initialized for primary and
overlay planes. Since the VOP2 driver only supports these plane
types at the moment, the current code is safe. However, in order
to provide a future-proof solution, fix the initialization of
the variable.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230124054706.3921383-2-michael.riesch@wolfvision.net
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c