drm/rockchip: vop: fix lut_res init error

Fixes: 07bceaca58 ("drm/rockchip: vop: add support write regs")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Icddbba0edff100a09b22724d05afc19461b6e8e8
This commit is contained in:
Sandy Huang
2024-08-07 16:55:29 +08:00
parent bf023b7cd6
commit d56a729dca

View File

@@ -5292,7 +5292,7 @@ static int vop_bind(struct device *dev, struct device *master, void *data)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gamma_lut");
if (res) {
vop->res = res;
vop->lut_res = res;
vop->lut_len = resource_size(res) / sizeof(*vop->lut);
if (vop->lut_len != 256 && vop->lut_len != 1024) {
dev_err(vop->dev, "unsupported lut sizes %d\n",