dect
/
linux-2.6
Archived
13
0
Fork 0

drm/nv10/gpio: fix thinko in mask for gpio lines 2-9

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2012-04-27 15:11:33 +10:00
parent ffc6a4e49e
commit b99da31ed8
1 changed files with 1 additions and 1 deletions

View 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) {