mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user