summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-04-27 15:11:33 +1000
committerBen Skeggs <bskeggs@redhat.com>2012-04-30 15:55:54 +1000
commitb99da31ed8521eb78d5d6930f3128f8ecdb75fae (patch)
tree42acad421679241a692c73d9e7464d5028e35600 /drivers/gpu/drm
parentffc6a4e49e5bc117aac13ed752cfc018c163e2ac (diff)
downloadlinux-3.10-b99da31ed8521eb78d5d6930f3128f8ecdb75fae.tar.gz
linux-3.10-b99da31ed8521eb78d5d6930f3128f8ecdb75fae.tar.bz2
linux-3.10-b99da31ed8521eb78d5d6930f3128f8ecdb75fae.zip
drm/nv10/gpio: fix thinko in mask for gpio lines 2-9
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/nouveau/nv10_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv10_gpio.c b/drivers/gpu/drm/nouveau/nv10_gpio.c
index 550ad3fcf0a..9d79180069d 100644
--- a/drivers/gpu/drm/nouveau/nv10_gpio.c
+++ b/drivers/gpu/drm/nouveau/nv10_gpio.c
@@ -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) {