Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334721
b: refs/heads/master
c: 5e5a195
h: refs/heads/master
i:
  334719: f093f31
v: v3
  • Loading branch information
Ben Skeggs committed Oct 22, 2012
1 parent 0b642d1 commit 2027988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 2c25b7399570ebdcf737c5af67c9d26a1771c002
refs/heads/master: 5e5a195ecc8cc0280d169d6da33c959df6336e9f
10 changes: 4 additions & 6 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/bios/pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,10 @@ pll_map_reg(struct nouveau_bios *bios, u32 reg, u32 *type, u8 *ver, u8 *len)
while (map->reg) {
if (map->reg == reg && *ver >= 0x20) {
u16 addr = (data += hdr);
*type = map->type;
while (cnt--) {
if (nv_ro32(bios, data) == map->reg) {
*type = map->type;
if (nv_ro32(bios, data) == map->reg)
return data;
}
data += *len;
}
return addr;
Expand Down Expand Up @@ -200,11 +199,10 @@ pll_map_type(struct nouveau_bios *bios, u8 type, u32 *reg, u8 *ver, u8 *len)
while (map->reg) {
if (map->type == type && *ver >= 0x20) {
u16 addr = (data += hdr);
*reg = map->reg;
while (cnt--) {
if (nv_ro32(bios, data) == map->reg) {
*reg = map->reg;
if (nv_ro32(bios, data) == map->reg)
return data;
}
data += *len;
}
return addr;
Expand Down

0 comments on commit 2027988

Please sign in to comment.