summaryrefslogtreecommitdiffstats
path: root/drivers/video/imxfb.c
diff options
context:
space:
mode:
authorGwenhael Goavec-Merou <gwe@trabucayre.com>2013-01-13 16:56:43 +0100
committerShawn Guo <shawn.guo@linaro.org>2013-01-14 08:16:18 +0800
commitafc10301f70350b490ca518ceb793928854b5453 (patch)
treec6430549ad63a1bce13d49127e9d768ebca9adba /drivers/video/imxfb.c
parent006e792ba5f60c59d8bc5ac5628c54e021e8580f (diff)
downloadop-kernel-dev-afc10301f70350b490ca518ceb793928854b5453.zip
op-kernel-dev-afc10301f70350b490ca518ceb793928854b5453.tar.gz
video: imxfb: fix imxfb_info configuration order
The devtype field for fbi (struct imxfb_info) must be set after memset call to avoid some wrong behaviour (pixel size). Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'drivers/video/imxfb.c')
-rw-r--r--drivers/video/imxfb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c
index e501dbc..8435c5d 100644
--- a/drivers/video/imxfb.c
+++ b/drivers/video/imxfb.c
@@ -729,6 +729,8 @@ static int __init imxfb_init_fbinfo(struct platform_device *pdev)
memset(fbi, 0, sizeof(struct imxfb_info));
+ fbi->devtype = pdev->id_entry->driver_data;
+
strlcpy(info->fix.id, IMX_NAME, sizeof(info->fix.id));
info->fix.type = FB_TYPE_PACKED_PIXELS;
@@ -789,7 +791,6 @@ static int __init imxfb_probe(struct platform_device *pdev)
return -ENOMEM;
fbi = info->par;
- fbi->devtype = pdev->id_entry->driver_data;
if (!fb_mode)
fb_mode = pdata->mode[0].mode.name;
OpenPOWER on IntegriCloud