Commit b99da31e authored by Ben Skeggs's avatar Ben Skeggs

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

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ffc6a4e4
...@@ -65,7 +65,7 @@ nv10_gpio_drive(struct drm_device *dev, int line, int dir, int out) ...@@ -65,7 +65,7 @@ nv10_gpio_drive(struct drm_device *dev, int line, int dir, int out)
if (line < 10) { if (line < 10) {
line = (line - 2) * 4; line = (line - 2) * 4;
reg = NV_PCRTC_GPIO_EXT; reg = NV_PCRTC_GPIO_EXT;
mask = 0x00000003 << ((line - 2) * 4); mask = 0x00000003;
data = (dir << 1) | out; data = (dir << 1) | out;
} else } else
if (line < 14) { if (line < 14) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment