summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2012-08-22 06:56:49 +0400
committerMatthew Garrett <mjg@redhat.com>2012-09-14 00:46:29 +0400
commite6d9d3d59ca08fc87688c5953061b4da0d17bf15 (patch)
tree6a81c8c863c2f59e25b16432695e044d93ea6177 /drivers/platform
parentc5a5052923c55990e32a3d64bdb4779b01162646 (diff)
downloadlinux-e6d9d3d59ca08fc87688c5953061b4da0d17bf15.tar.xz
apple-gmux: Fix port address calculation in gmux_pio_write32()
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/apple-gmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c
index 0e43477de337..5c17ba895692 100644
--- a/drivers/platform/x86/apple-gmux.c
+++ b/drivers/platform/x86/apple-gmux.c
@@ -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);
}
}