summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_bios.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-10-12 10:48:48 +0400
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 13:01:39 +0400
commitf9f9f536312d4c3ca39502ccf6a3af60cfe38ff4 (patch)
tree8dc47e17532e708f9bcea5bf307ce83f585ebe72 /drivers/gpu/drm/nouveau/nouveau_bios.c
parent816af2f2d6bf3191988ecaf2340452ebc46025fc (diff)
downloadlinux-f9f9f536312d4c3ca39502ccf6a3af60cfe38ff4.tar.xz
drm/nouveau/bios: pass drm_device to ROMPTR, rather than nvbios
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bios.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bios.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 89747bebbfc7..dfa8e329c876 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -4541,7 +4541,7 @@ nouveau_bios_run_display_table(struct drm_device *dev, u16 type, int pclk,
NV_DEBUG_KMS(dev, "Searching for output entry for %d %d %d\n",
dcbent->type, dcbent->location, dcbent->or);
for (i = 0; i < table[3]; i++) {
- otable = ROMPTR(bios, table[table[1] + (i * table[2])]);
+ otable = ROMPTR(dev, table[table[1] + (i * table[2])]);
if (otable && bios_encoder_match(dcbent, ROM32(otable[0])))
break;
}
@@ -5493,7 +5493,7 @@ bit_table(struct drm_device *dev, u8 id, struct bit_entry *bit)
bit->version = entry[1];
bit->length = ROM16(entry[2]);
bit->offset = ROM16(entry[4]);
- bit->data = ROMPTR(bios, entry[4]);
+ bit->data = ROMPTR(dev, entry[4]);
return 0;
}
@@ -5807,9 +5807,9 @@ parse_dcb_gpio_table(struct nvbios *bios)
u8 *dcb, *gpio = NULL, *entry;
int i;
- dcb = ROMPTR(bios, bios->data[0x36]);
+ dcb = ROMPTR(dev, bios->data[0x36]);
if (dcb[0] >= 0x30) {
- gpio = ROMPTR(bios, dcb[10]);
+ gpio = ROMPTR(dev, dcb[10]);
if (!gpio)
goto no_table;
@@ -5818,7 +5818,7 @@ parse_dcb_gpio_table(struct nvbios *bios)
recordlen = gpio[3];
} else
if (dcb[0] >= 0x22 && dcb[-1] >= 0x13) {
- gpio = ROMPTR(bios, dcb[-15]);
+ gpio = ROMPTR(dev, dcb[-15]);
if (!gpio)
goto no_table;