On Fri, 12 Mar 2021 20:55:58 -0400 Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > fsl-mc already allocates a struct vfio_fsl_mc_device with exactly the same > lifetime as vfio_device, switch to the new API and embed vfio_device in > vfio_fsl_mc_device. While here remove the devm usage for the vdev, this > code is clean and doesn't need devm. > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > --- > drivers/vfio/fsl-mc/vfio_fsl_mc.c | 18 ++++++++++-------- > drivers/vfio/fsl-mc/vfio_fsl_mc_private.h | 1 + > 2 files changed, 11 insertions(+), 8 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>