drm/rockchip: drv: delete legacy fb setting

Primary plane for this CRTC, this is only relevant for legacy IOCTL,
it specifies the plane implicitly used by the SETCRTC and PAGE_FLIP IOCTLs,
It does not have any significance beyond that.

Change-Id: Ia4b0ac8fd4f597cd628377be32eef2ef498f4af3
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2019-12-03 21:08:36 +08:00
committed by Tao Huang
parent 7ec17eafde
commit b007d60ce6

View File

@@ -1563,10 +1563,8 @@ static int rockchip_drm_bind(struct device *dev)
break;
s = to_rockchip_crtc_state(crtc->state);
if (is_support_hotplug(s->output_type)) {
crtc->primary->fb = helper->fb;
if (is_support_hotplug(s->output_type))
drm_framebuffer_get(helper->fb);
}
}
drm_dev->mode_config.allow_fb_modifiers = true;