rivafb: Handle I2C bus creation failure
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.
Signed-off-by Jean Delvare <[email protected]>
Signed-off-by Antonino Daplas <[email protected]>
---
drivers/video/riva/fbdev.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/riva/fbdev.c +2 -0
@@ -1789,6 +1789,8 @@ static int __devinit riva_get_EDID_i2c(sNVTRACE_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