diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_volt.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_volt.c | 6 |
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) { |