atp870u: Use pci_request_regions
authorOndrej Zary <linux@rainbow-software.org>
Tue, 17 Nov 2015 18:24:22 +0000 (19:24 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2015 03:08:51 +0000 (22:08 -0500)
commit11ec131804e75b73f07ac04f94888efc65c5d4c4
treebe5e976c4d6e5eb479f20a474b31a0117d4bc897
parentb922a44995a6e94560aa3eae0602bf92a4e7b084
atp870u: Use pci_request_regions

Use pci_request_regions and do it before accessing the I/O ports.
Also add missing pci_disable_device() call to atp870u_remove().

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