]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/hisi_acc: Use the new device life cycle helpers
authorYi Liu <yi.l.liu@intel.com>
Wed, 21 Sep 2022 10:43:50 +0000 (18:43 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 21 Sep 2022 20:15:10 +0000 (14:15 -0600)
commitc8aabd15a7a9a1ea099e5eb792dcf413b5c241db
tree4461d53e6f37094383ce53827336053dc4ce0161
parent0b50756a37ab279ab5f8824a565638b47f6b7628
vfio/hisi_acc: Use the new device life cycle helpers

Tidy up @probe so all migration specific initialization logic is moved
to migration specific @init callback.

Remove vfio_pci_core_{un}init_device() given no user now.

Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20220921104401.38898-5-kevin.tian@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
drivers/vfio/pci/vfio_pci_core.c
include/linux/vfio_pci_core.h