mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
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: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bd5121bbb6
commit
942325c8b2
@ -200,8 +200,8 @@ static void imx_drm_driver_preclose(struct drm_device *drm,
|
||||
if (!file->is_master)
|
||||
return;
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
imx_drm_disable_vblank(drm , i);
|
||||
for (i = 0; i < MAX_CRTC; i++)
|
||||
imx_drm_disable_vblank(drm, i);
|
||||
}
|
||||
|
||||
static const struct file_operations imx_drm_driver_fops = {
|
||||
|
Loading…
Reference in New Issue
Block a user