drm/nv10/gpio: fix thinko in mask for gpio lines 2-9
authorBen Skeggs <bskeggs@redhat.com>
Fri, 27 Apr 2012 05:11:33 +0000 (15:11 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 30 Apr 2012 05:55:54 +0000 (15:55 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv10_gpio.c

index 550ad3f..9d79180 100644 (file)
@@ -65,7 +65,7 @@ nv10_gpio_drive(struct drm_device *dev, int line, int dir, int out)
        if (line < 10) {
                line = (line - 2) * 4;
                reg  = NV_PCRTC_GPIO_EXT;
-               mask = 0x00000003 << ((line - 2) * 4);
+               mask = 0x00000003;
                data = (dir << 1) | out;
        } else
        if (line < 14) {