scsi: hisi_sas: Use managed PCI functions
authorXiang Chen <chenxiang66@hisilicon.com>
Tue, 24 Aug 2021 10:00:56 +0000 (18:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Sep 2021 03:56:02 +0000 (23:56 -0400)
commit4f6094f1663e2ed26a940f1842cdaa15c1dd649a
treef978ed5dc9d08482ff025c007a398802881a7ce9
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
scsi: hisi_sas: Use managed PCI functions

Use managed PCI functions such as pcim_enable_device() and
pcim_iomap_regions() to simplify exception handling code.

Link: https://lore.kernel.org/r/1629799260-120116-2-git-send-email-john.garry@huawei.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c