]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/mdev: turn mdev_init into a subsys_initcall
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jul 2021 14:35:23 +0000 (16:35 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Aug 2021 21:23:43 +0000 (15:23 -0600)
commit156b86ee780df9ac92eb78730307166a3d72f5fc
tree7da24d6ca97ee7d10ecc41ea24b2dcb762e9d693
parentd8736bc913d8525b8f366120394785d4f0edad44
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>
drivers/vfio/mdev/mdev_core.c