Commit 382d91fc authored by Bixuan Cui's avatar Bixuan Cui Committed by Joerg Roedel

iommu/virtio: Add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarBixuan Cui <cuibixuan@huawei.com>
Fixes: fa4afd78 ("iommu/virtio: Build virtio-iommu as module")
Reviewed-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20210508031451.53493-1-cuibixuan@huawei.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent a017c567
...@@ -1136,6 +1136,7 @@ static struct virtio_device_id id_table[] = { ...@@ -1136,6 +1136,7 @@ static struct virtio_device_id id_table[] = {
{ VIRTIO_ID_IOMMU, VIRTIO_DEV_ANY_ID }, { VIRTIO_ID_IOMMU, VIRTIO_DEV_ANY_ID },
{ 0 }, { 0 },
}; };
MODULE_DEVICE_TABLE(virtio, id_table);
static struct virtio_driver virtio_iommu_drv = { static struct virtio_driver virtio_iommu_drv = {
.driver.name = KBUILD_MODNAME, .driver.name = KBUILD_MODNAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment