summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dmar.c
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2018-02-12 16:48:20 +0000
committerJoerg Roedel <jroedel@suse.de>2018-02-13 17:40:53 +0100
commitd15a339eaca6fd6eb00ebc36edf3c289b65000fe (patch)
treeaf07df5a02f0ec1994711d609467778e9380a3ca /drivers/iommu/dmar.c
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
downloadtalos-obmc-linux-d15a339eaca6fd6eb00ebc36edf3c289b65000fe.tar.gz
talos-obmc-linux-d15a339eaca6fd6eb00ebc36edf3c289b65000fe.zip
iommu/vt-d: Add __init for dmar_register_bus_notifier()
It's called only from intel_iommu_init(), which is init function. Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r--drivers/iommu/dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 9a7ffd13c7f0..accf58388bdb 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -806,7 +806,7 @@ int __init dmar_dev_scope_init(void)
return dmar_dev_scope_status;
}
-void dmar_register_bus_notifier(void)
+void __init dmar_register_bus_notifier(void)
{
bus_register_notifier(&pci_bus_type, &dmar_pci_bus_nb);
}
OpenPOWER on IntegriCloud