summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/mdev
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-07-26 16:35:23 +0200
committerAlex Williamson <alex.williamson@redhat.com>2021-08-02 23:23:43 +0200
commit15a5896e61acb7cbad5efd9cf807a4d9a5e8315d (patch)
tree7da24d6ca97ee7d10ecc41ea24b2dcb762e9d693 /drivers/vfio/mdev
parentvfio/pci: Make vfio_pci_regops->rw() return ssize_t (diff)
downloadlinux-15a5896e61acb7cbad5efd9cf807a4d9a5e8315d.tar.xz
linux-15a5896e61acb7cbad5efd9cf807a4d9a5e8315d.zip
vfio/mdev: turn mdev_init into a subsys_initcall
Without this setups with buŃ–lt-in mdev and mdev-drivers fail to register like this: [1.903149] Driver 'intel_vgpu_mdev' was unable to register with bus_type 'mdev' because the bus was not initialized. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20210726143524.155779-2-hch@lst.de Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/mdev')
-rw-r--r--drivers/vfio/mdev/mdev_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c
index e4581ec093a6..b16606ebafa1 100644
--- a/drivers/vfio/mdev/mdev_core.c
+++ b/drivers/vfio/mdev/mdev_core.c
@@ -398,7 +398,7 @@ static void __exit mdev_exit(void)
mdev_bus_unregister();
}
-module_init(mdev_init)
+subsys_initcall(mdev_init)
module_exit(mdev_exit)
MODULE_VERSION(DRIVER_VERSION);