summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/512x
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-09-28 21:19:53 (GMT)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-10-05 01:10:12 (GMT)
commitc4e5a0232763db22d6c60c391ed5816b2b2ac063 (patch)
tree8a57e8447ca0b025feba742b54296da3e7eafc55 /arch/powerpc/platforms/512x
parent7e47c211953bd8e396b168eba2c288ea6aec20ef (diff)
downloadlinux-fsl-qoriq-c4e5a0232763db22d6c60c391ed5816b2b2ac063.tar.xz
drivers/video: fsl-diu-fb: only DIU modes 0 and 1 are supported
The Freescale DIU video controller supports five video "modes", but only the first two are used by the driver. The other three are special modes that don't make sense for a framebuffer driver. Therefore, there's no point in keeping a global variable that indicates which mode we're supposed to use. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'arch/powerpc/platforms/512x')
-rw-r--r--arch/powerpc/platforms/512x/mpc512x_shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c
index 3dc62f9..cfe958e 100644
--- a/arch/powerpc/platforms/512x/mpc512x_shared.c
+++ b/arch/powerpc/platforms/512x/mpc512x_shared.c
@@ -253,7 +253,7 @@ void __init mpc512x_init_diu(void)
}
mode = in_be32(&diu_reg->diu_mode);
- if (mode != MFB_MODE1) {
+ if (mode == MFB_MODE0) {
pr_info("%s: DIU OFF\n", __func__);
goto out;
}