atp870u: Fix incorrect writeb_io access to register 0x3a
authorOndrej Zary <linux@rainbow-software.org>
Tue, 17 Nov 2015 18:24:09 +0000 (19:24 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2015 03:08:44 +0000 (22:08 -0500)
commitc751d9f1fce4187bf1c0848d7d3a5bf7644d7f9c
tree9ce1bb2a7a1bff6cc4b02f8d3996bc7b853c2da6
parent2bbbac4571de7983f142ed22add59e5217674169
atp870u: Fix incorrect writeb_io access to register 0x3a

The ioport region is 0x20 bytes long so accessing 0x3a register using
writeb_io is incorrect. Use writeb_base instead.
There's no change in behavior as 870 chips have ioport = baseport.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/atp870u.c