iommu/amd: Move add_special_device() to __init
authorJoerg Roedel <joro@8bytes.org>
Tue, 9 Apr 2013 15:32:34 +0000 (17:32 +0200)
committerJoerg Roedel <joro@8bytes.org>
Fri, 19 Apr 2013 18:46:18 +0000 (20:46 +0200)
The function is only called by other __init functions, so it
can be moved to __init too.

Reviewed-by: Shuah Khan <shuahkhan@gmail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/amd_iommu_init.c

index e3c2d74b7684596790fd0293461dc74922a850ba..ea94ee6449893555414ca159dbc4bf733d3084fe 100644 (file)
@@ -703,7 +703,7 @@ static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu,
        set_iommu_for_device(iommu, devid);
 }
 
-static int add_special_device(u8 type, u8 id, u16 devid)
+static int __init add_special_device(u8 type, u8 id, u16 devid)
 {
        struct devid_map *entry;
        struct list_head *list;