vfio/fsl-mc: Use the new device life cycle helpers
authorYi Liu <yi.l.liu@intel.com>
Wed, 21 Sep 2022 10:43:56 +0000 (18:43 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 21 Sep 2022 20:15:11 +0000 (14:15 -0600)
commit7566692c571dced7208b7cc26c1d3b898a233487
treeac1fd029b3b6b7e8faae34df7f132f3bc762d44d
parent7cb5a82eb162d268f65c7b0fbec4a5f6495bab79
vfio/fsl-mc: Use the new device life cycle helpers

Also add a comment to mark that vfio core releases device_set if @init
fails.

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>
Link: https://lore.kernel.org/r/20220921104401.38898-11-kevin.tian@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/fsl-mc/vfio_fsl_mc.c