* [PATCH] fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c
@ 2010-05-24 7:53 Guennadi Liakhovetski
2010-05-25 3:34 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Guennadi Liakhovetski @ 2010-05-24 7:53 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
This is a fix, so, can go in rc2, no rush. In fact, maybe we can just
"continue" on "pdata->ch[i].chan = LCDC_CHAN_DISABLED" in that loop?
Doesn't look like anyone is relying on the current behaviour.
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 e8c7699..12c451a 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)
priv->ch[j].lcdc = priv;
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) {
dev_err(&pdev->dev, "unsupported interface type\n");
goto err1;
}
- init_waitqueue_head(&priv->ch[i].frame_end_wait);
- init_completion(&priv->ch[i].vsync_completion);
+ init_waitqueue_head(&priv->ch[j].frame_end_wait);
+ init_completion(&priv->ch[j].vsync_completion);
priv->ch[j].pan_offset = 0;
switch (pdata->ch[i].chan) {
--
1.6.2.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c
2010-05-24 7:53 [PATCH] fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c Guennadi Liakhovetski
@ 2010-05-25 3:34 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2010-05-25 3:34 UTC (permalink / raw)
To: linux-sh
On Mon, May 24, 2010 at 09:53:24AM +0200, Guennadi Liakhovetski wrote:
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> ---
>
> This is a fix, so, can go in rc2, no rush. In fact, maybe we can just
> "continue" on "pdata->ch[i].chan = LCDC_CHAN_DISABLED" in that loop?
> Doesn't look like anyone is relying on the current behaviour.
>
> drivers/video/sh_mobile_lcdcfb.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
That would seem like a reasonable alternative, but I'll let Magnus chime
in incase there's anything expecting that behaviour that hasn't been
merged yet.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-25 3:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 7:53 [PATCH] fbdev: fix erroneous index in drivers/video/sh_mobile_lcdcfb.c Guennadi Liakhovetski
2010-05-25 3:34 ` Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.