[PATCH] Subject: shmobile: Fix build of the LCDC driver

From: Rafael J. Wysocki
Date: Fri May 27 2011 - 19:22:23 EST


From: Rafael J. Wysocki <rjw@xxxxxxx>

The shmobile lcdcfb driver fails to build because of the undefined
ret variable in sh_mobile_lcdc_start(). Fix this problem.

Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>
---

Hi,

I don't know whether this is known or not. In case it isn't,
here's a fix. :-)

Thanks,
Rafael

---
drivers/video/sh_mobile_lcdcfb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/video/sh_mobile_lcdcfb.c
===================================================================
--- linux-2.6.orig/drivers/video/sh_mobile_lcdcfb.c
+++ linux-2.6/drivers/video/sh_mobile_lcdcfb.c
@@ -616,7 +616,7 @@ static int sh_mobile_lcdc_start(struct s
struct sh_mobile_meram_info *mdev;
unsigned long icb_addr_y, icb_addr_c;
int icb_pitch;
- int pf;
+ int pf, ret;

cfg = ch->cfg.meram_cfg;
mdev = priv->meram_dev;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/