mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
iommu/virtio: Add missing MODULE_DEVICE_TABLE
[ Upstream commit382d91fc0f] 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: Hulk Robot <hulkci@huawei.com> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com> Fixes:fa4afd78ea("iommu/virtio: Build virtio-iommu as module") Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Link: https://lore.kernel.org/r/20210508031451.53493-1-cuibixuan@huawei.com Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8e534c981d
commit
815eb57e04
@@ -1138,6 +1138,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,
|
||||||
|
|||||||
Reference in New Issue
Block a user