瀏覽代碼

iommu/amd: Move add_special_device() to __init

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>
Joerg Roedel 12 年之前
父節點
當前提交
d3da2200d0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/iommu/amd_iommu_init.c

+ 1 - 1
drivers/iommu/amd_iommu_init.c

@@ -703,7 +703,7 @@ static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu,
 	set_iommu_for_device(iommu, devid);
 	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 devid_map *entry;
 	struct list_head *list;
 	struct list_head *list;