mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
rivafb: handle I2C bus creation failure
I2C bus creation may fail, let rivafb handle that case properly. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1e73db2536
commit
5b358fe12f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue