aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_volt.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-10-12 02:48:48 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 04:01:39 -0500
commitf9f9f536312d4c3ca39502ccf6a3af60cfe38ff4 (patch)
tree8dc47e17532e708f9bcea5bf307ce83f585ebe72 /drivers/gpu/drm/nouveau/nouveau_volt.c
parent816af2f2d6bf3191988ecaf2340452ebc46025fc (diff)
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_volt.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_volt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_volt.c b/drivers/gpu/drm/nouveau/nouveau_volt.c
index 86d03e15735d..ac15b46ea3a0 100644
--- a/drivers/gpu/drm/nouveau/nouveau_volt.c
+++ b/drivers/gpu/drm/nouveau/nouveau_volt.c
@@ -117,10 +117,10 @@ nouveau_volt_init(struct drm_device *dev)
117 return; 117 return;
118 118
119 if (P.version == 1) 119 if (P.version == 1)
120 volt = ROMPTR(bios, P.data[16]); 120 volt = ROMPTR(dev, P.data[16]);
121 else 121 else
122 if (P.version == 2) 122 if (P.version == 2)
123 volt = ROMPTR(bios, P.data[12]); 123 volt = ROMPTR(dev, P.data[12]);
124 else { 124 else {
125 NV_WARN(dev, "unknown volt for BIT P %d\n", P.version); 125 NV_WARN(dev, "unknown volt for BIT P %d\n", P.version);
126 } 126 }
@@ -130,7 +130,7 @@ nouveau_volt_init(struct drm_device *dev)
130 return; 130 return;
131 } 131 }
132 132
133 volt = ROMPTR(bios, bios->data[bios->offset + 0x98]); 133 volt = ROMPTR(dev, bios->data[bios->offset + 0x98]);
134 } 134 }
135 135
136 if (!volt) { 136 if (!volt) {