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

and manage available ports inside @init/@release.

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-7-kevin.tian@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mtty.c