Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209819
b: refs/heads/master
c: 98720bf
h: refs/heads/master
i:
  209817: 37021a4
  209815: 395a4ba
v: v3
  • Loading branch information
Ben Skeggs committed Aug 17, 2010
1 parent b4b4466 commit ef08add
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: bd6aaea89318bd3aede9e219d6a003afd9978d5b
refs/heads/master: 98720bf4e1ba5f1d0109f97a49a9028b91f25cbe
12 changes: 5 additions & 7 deletions trunk/drivers/gpu/drm/nouveau/nouveau_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -5357,19 +5357,17 @@ static int parse_bit_tmds_tbl_entry(struct drm_device *dev, struct nvbios *bios,
}

tmdstableptr = ROM16(bios->data[bitentry->offset]);

if (tmdstableptr == 0x0) {
if (!tmdstableptr) {
NV_ERROR(dev, "Pointer to TMDS table invalid\n");
return -EINVAL;
}

NV_INFO(dev, "TMDS table version %d.%d\n",
bios->data[tmdstableptr] >> 4, bios->data[tmdstableptr] & 0xf);

/* nv50+ has v2.0, but we don't parse it atm */
if (bios->data[tmdstableptr] != 0x11) {
NV_WARN(dev,
"TMDS table revision %d.%d not currently supported\n",
bios->data[tmdstableptr] >> 4, bios->data[tmdstableptr] & 0xf);
if (bios->data[tmdstableptr] != 0x11)
return -ENOSYS;
}

/*
* These two scripts are odd: they don't seem to get run even when
Expand Down

0 comments on commit ef08add

Please sign in to comment.