]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/ccw: Flatten MDEV device (un)register
authorEric Farman <farman@linux.ibm.com>
Thu, 7 Jul 2022 13:57:32 +0000 (15:57 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 7 Jul 2022 20:06:12 +0000 (14:06 -0600)
commit3ea135f7368d2a8ef60b8b11447db00fbf67360a
tree9ad16911f74ff4c105abe7ab15d029724d4eaf5e
parent0237e0109be45d89731674b4bc0c41441928f0fd
vfio/ccw: Flatten MDEV device (un)register

The vfio_ccw_mdev_(un)reg routines are merely vfio-ccw routines that
pass control to mdev_(un)register_device. Since there's only one
caller of each, let's just call the mdev routines directly.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20220707135737.720765-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