Commit e1f42ff4 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Paul Mundt

fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 14baf9d7
...@@ -991,13 +991,13 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev) ...@@ -991,13 +991,13 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev)
priv->ch[j].lcdc = priv; priv->ch[j].lcdc = priv;
memcpy(&priv->ch[j].cfg, &pdata->ch[i], sizeof(pdata->ch[i])); memcpy(&priv->ch[j].cfg, &pdata->ch[i], sizeof(pdata->ch[i]));
error = sh_mobile_lcdc_check_interface(&priv->ch[i]); error = sh_mobile_lcdc_check_interface(&priv->ch[j]);
if (error) { if (error) {
dev_err(&pdev->dev, "unsupported interface type\n"); dev_err(&pdev->dev, "unsupported interface type\n");
goto err1; goto err1;
} }
init_waitqueue_head(&priv->ch[i].frame_end_wait); init_waitqueue_head(&priv->ch[j].frame_end_wait);
init_completion(&priv->ch[i].vsync_completion); init_completion(&priv->ch[j].vsync_completion);
priv->ch[j].pan_offset = 0; priv->ch[j].pan_offset = 0;
switch (pdata->ch[i].chan) { switch (pdata->ch[i].chan) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment