Skip to content

Commit

Permalink
rivafb: handle I2C bus creation failure
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed May 8, 2007
1 parent 1e73db2 commit 5b358fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/riva/fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,8 @@ static int __devinit riva_get_EDID_i2c(struct fb_info *info)
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);
Expand Down

0 comments on commit 5b358fe

Please sign in to comment.