Skip to content

Commit

Permalink
drm/nv10/gpio: fix thinko in mask for gpio lines 2-9
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Apr 30, 2012
1 parent ffc6a4e commit b99da31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv10_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b99da31

Please sign in to comment.