Skip to contentSkip to conversation

rivafb: Handle I2C bus creation failure

PATCH Superseded Antonino A. Daplas 1 participant 1 message Apr 9, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 rivafb: Handle I2C bus creation failure

From: Jean Delvare <[email protected]>

I2C bus creation may fail, let rivafb handle that case properly.

---

 drivers/video/riva/fbdev.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/riva/fbdev.c +2 -0
index a37189a..b8d50f1 100644
@@ -1789,6 +1789,8 @@ static int __devinit riva_get_EDID_i2c(s
 	NVTRACE_ENTER();
 	riva_create_i2c_busses(par);
 	for (i = 0; i < par->bus; i++) {
+		if (!par->chan[i].par)
+			continue;
 		riva_probe_i2c_connector(par, i+1, &par->EDID);
 		if (par->EDID && !fb_parse_edid(par->EDID, &var)) {
 			printk(PFX "Found EDID Block from BUS %i\n", i);

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV