diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2012-08-22 02:56:49 (GMT) |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-09-13 20:46:29 (GMT) |
commit | e6d9d3d59ca08fc87688c5953061b4da0d17bf15 (patch) | |
tree | 6a81c8c863c2f59e25b16432695e044d93ea6177 /drivers/platform | |
parent | c5a5052923c55990e32a3d64bdb4779b01162646 (diff) | |
download | linux-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c index 0e43477..5c17ba8 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); } } |