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>
This commit is contained in:
Dmitry Safonov 2018-02-12 16:48:20 +00:00 committed by Joerg Roedel
parent 7928b2cbe5
commit d15a339eac
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}