drm/nvc0/pm: enable voltage_get
authorBen Skeggs <bskeggs@redhat.com>
Thu, 9 Jun 2011 07:34:02 +0000 (17:34 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 20 Sep 2011 06:01:25 +0000 (16:01 +1000)
I don't have a terribly good reason for not enabling voltage_set too, but,
lets wait and see.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c

index 10656e430b44106f26497beb648e19dca9226994..48bddd5b3503c575d2df2cf09d8597fa725140c1 100644 (file)
@@ -422,6 +422,7 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
                engine->vram.put                = nv50_vram_del;
                engine->vram.flags_valid        = nvc0_vram_flags_valid;
                engine->pm.temp_get             = nv84_temp_get;
+               engine->pm.voltage_get          = nouveau_voltage_gpio_get;
                break;
        default:
                NV_ERROR(dev, "NV%02x unsupported\n", dev_priv->chipset);