Skip to content

Commit

Permalink
apple-gmux: Fix port address calculation in gmux_pio_write32()
Browse files Browse the repository at this point in the history
This function fails to add the start address of the gmux I/O range to
the requested port address and thus writes to the wrong location.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Seth Forshee authored and Matthew Garrett committed Sep 13, 2012
1 parent c5a5052 commit e6d9d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/apple-gmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static void gmux_pio_write32(struct apple_gmux_data *gmux_data, int port,

for (i = 0; i < 4; i++) {
tmpval = (val >> (i * 8)) & 0xff;
outb(tmpval, port + i);
outb(tmpval, gmux_data->iostart + port + i);
}
}

Expand Down

0 comments on commit e6d9d3d

Please sign in to comment.