summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-12-16 12:38:50 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-17 17:12:55 -0800
commit942325c8b234fd67db976bd529d48320a6a73171 (patch)
treed58d7e8ed863e39a81315d89627af59190216786
parentbd5121bbb6b9a89d9d13878fa5bb1e833168ae18 (diff)
downloadlinux-942325c8b234fd67db976bd529d48320a6a73171.tar.gz
linux-942325c8b234fd67db976bd529d48320a6a73171.tar.bz2
linux-942325c8b234fd67db976bd529d48320a6a73171.zip
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>
-rw-r--r--drivers/staging/imx-drm/imx-drm-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c
index aff4bd47693e..b52b8273d652 100644
--- a/drivers/staging/imx-drm/imx-drm-core.c
+++ b/drivers/staging/imx-drm/imx-drm-core.c
@@ -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 = {