diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-05-24 03:53:24 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-24 23:23:22 -0400 |
commit | e1f42ff4f06e5feaa57a22556ad977ef62164e14 (patch) | |
tree | 4554a97b28721292af55dff77d44096da1a56aa7 /drivers/video/sh_mobile_lcdcfb.c | |
parent | 14baf9d7f275f0bbf42c1216ff1eef1109ca42ba (diff) |
fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index e8c769944812..12c451a711e9 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -991,13 +991,13 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev) | |||
991 | priv->ch[j].lcdc = priv; | 991 | priv->ch[j].lcdc = priv; |
992 | memcpy(&priv->ch[j].cfg, &pdata->ch[i], sizeof(pdata->ch[i])); | 992 | memcpy(&priv->ch[j].cfg, &pdata->ch[i], sizeof(pdata->ch[i])); |
993 | 993 | ||
994 | error = sh_mobile_lcdc_check_interface(&priv->ch[i]); | 994 | error = sh_mobile_lcdc_check_interface(&priv->ch[j]); |
995 | if (error) { | 995 | if (error) { |
996 | dev_err(&pdev->dev, "unsupported interface type\n"); | 996 | dev_err(&pdev->dev, "unsupported interface type\n"); |
997 | goto err1; | 997 | goto err1; |
998 | } | 998 | } |
999 | init_waitqueue_head(&priv->ch[i].frame_end_wait); | 999 | init_waitqueue_head(&priv->ch[j].frame_end_wait); |
1000 | init_completion(&priv->ch[i].vsync_completion); | 1000 | init_completion(&priv->ch[j].vsync_completion); |
1001 | priv->ch[j].pan_offset = 0; | 1001 | priv->ch[j].pan_offset = 0; |
1002 | 1002 | ||
1003 | switch (pdata->ch[i].chan) { | 1003 | switch (pdata->ch[i].chan) { |