From: Seth Forshee Date: Wed, 22 Aug 2012 02:56:49 +0000 (-0500) Subject: apple-gmux: Fix port address calculation in gmux_pio_write32() X-Git-Tag: Ubuntu-5.0.0-8.9~15312^2~5 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e6d9d3d59ca08fc87688c5953061b4da0d17bf15;p=mirror_ubuntu-disco-kernel.git 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 Signed-off-by: Matthew Garrett --- 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); } }