vfio/ccw: replace vfio_init_device with _alloc_
authorEric Farman <farman@linux.ibm.com>
Fri, 4 Nov 2022 14:20:06 +0000 (15:20 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 10 Nov 2022 18:30:23 +0000 (11:30 -0700)
commitd1104f9327df9b26901b97cd026949f80ccab0d3
tree42819b4942ab4a01a5f1345bf19c76035242fcb9
parentf4da83f7e3f096ece936512d86ef3726e470fbfd
vfio/ccw: replace vfio_init_device with _alloc_

Now that we have a reasonable separation of structs that follow
the subchannel and mdev lifecycles, there's no reason we can't
call the official vfio_alloc_device routine for our private data,
and behave like everyone else.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20221104142007.1314999-7-farman@linux.ibm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_drv.c
drivers/s390/cio/vfio_ccw_ops.c
drivers/s390/cio/vfio_ccw_private.h
drivers/vfio/vfio_main.c
include/linux/vfio.h