]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/nouveau/pm: remove defunct fanspeed_set/get from pm table
authorBen Skeggs <bskeggs@redhat.com>
Fri, 16 Sep 2011 20:38:56 +0000 (06:38 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:13 +0000 (19:01 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_pm.c

index ea4009eaab20506113ad8b89571e5ed9cb4bd3b8..48483504edb44f48e6f74e0de8ae5b0f73152e60 100644 (file)
@@ -556,8 +556,6 @@ struct nouveau_pm_engine {
        int (*voltage_set)(struct drm_device *, int voltage);
        int (*pwm_get)(struct drm_device *, struct dcb_gpio_entry*, u32*, u32*);
        int (*pwm_set)(struct drm_device *, struct dcb_gpio_entry*, u32, u32);
-       int (*fanspeed_get)(struct drm_device *);
-       int (*fanspeed_set)(struct drm_device *, int fanspeed);
        int (*temp_get)(struct drm_device *);
 };
 
index b94364dbe3523b28a10a61d94664692cdc1e1bf0..3ebc3f575c58636296542964a82a30c0096b14bb 100644 (file)
@@ -40,15 +40,12 @@ nouveau_pwmfan_get(struct drm_device *dev)
        struct drm_nouveau_private *dev_priv = dev->dev_private;
        struct nouveau_gpio_engine *pgpio = &dev_priv->engine.gpio;
        struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
-       struct dcb_gpio_entry *gpio;
+       struct dcb_gpio_entry *gpio = NULL;
        u32 divs, duty;
        int ret;
 
-       if (!pm->pwm_get) {
-               if (pm->fanspeed_get)
-                       return pm->fanspeed_get(dev);
+       if (!pm->pwm_get)
                return -ENODEV;
-       }
 
        gpio = nouveau_bios_gpio_entry(dev, DCB_GPIO_PWM_FAN);
        if (gpio) {
@@ -75,11 +72,8 @@ nouveau_pwmfan_set(struct drm_device *dev, int percent)
        struct dcb_gpio_entry *gpio;
        u32 divs, duty;
 
-       if (!pm->pwm_set) {
-               if (pm->fanspeed_set)
-                       return pm->fanspeed_set(dev, percent);
+       if (!pm->pwm_set)
                return -ENODEV;
-       }
 
        gpio = nouveau_bios_gpio_entry(dev, DCB_GPIO_PWM_FAN);
        if (gpio) {