提交 942325c8 编写于 作者: R Russell King 提交者: Greg Kroah-Hartman

imx-drm: imx-drm-core: use defined constant for number of CRTCs.

We have this definition, there's no reason not to use it.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 bd5121bb
...@@ -200,8 +200,8 @@ static void imx_drm_driver_preclose(struct drm_device *drm, ...@@ -200,8 +200,8 @@ static void imx_drm_driver_preclose(struct drm_device *drm,
if (!file->is_master) if (!file->is_master)
return; return;
for (i = 0; i < 4; i++) for (i = 0; i < MAX_CRTC; i++)
imx_drm_disable_vblank(drm , i); imx_drm_disable_vblank(drm, i);
} }
static const struct file_operations imx_drm_driver_fops = { static const struct file_operations imx_drm_driver_fops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册