Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268095
b: refs/heads/master
c: de736db
h: refs/heads/master
i:
  268093: a8896b1
  268091: 76a701a
  268087: f28c445
  268079: e071447
  268063: b7d299e
  268031: 5af5175
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent 7eab0fa commit 49ecea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35c064da1b0c9525f51bb84e9ce55aa5961063f0
refs/heads/master: de736dbb2253679806a281f125983f58d1ae1218
7 changes: 6 additions & 1 deletion trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static int XGIfb_GetXG21DefaultLVDSModeIdx(void)
XGIfb_mode_idx++;
}
if (!found_mode)
XGIfb_mode_idx = 0;
XGIfb_mode_idx = -1;

return XGIfb_mode_idx;
}
Expand Down Expand Up @@ -2313,6 +2313,11 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
}
}

if (xgifb_mode_idx < 0) {
dev_err(&pdev->dev, "no supported video mode found\n");
goto error_1;
}

if (xgi21_drvlcdcaplist) {
int m;

Expand Down

0 comments on commit 49ecea4

Please sign in to comment.