]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfd7b17dcf40eada7f61a617d823928e5e8af95b
treef978ed5dc9d08482ff025c007a398802881a7ce9
parentb901123b83fca756ffcd85ea50a6cd9637d66d0c
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