diff options
author | Joerg Roedel <joro@8bytes.org> | 2013-04-09 11:32:34 -0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-04-19 14:46:18 -0400 |
commit | d3da2200d0d6096e7c7f9a951cd23bc391403326 (patch) | |
tree | ebd9345b155ac9a24c441e68a4f1d43117b823a8 /drivers/iommu | |
parent | 197887f03daecdb3ae21bafeb4155412abad3497 (diff) |
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/amd_iommu_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index e3c2d74b7684..ea94ee644989 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c | |||
@@ -703,7 +703,7 @@ static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu, | |||
703 | set_iommu_for_device(iommu, devid); | 703 | set_iommu_for_device(iommu, devid); |
704 | } | 704 | } |
705 | 705 | ||
706 | static int add_special_device(u8 type, u8 id, u16 devid) | 706 | static int __init add_special_device(u8 type, u8 id, u16 devid) |
707 | { | 707 | { |
708 | struct devid_map *entry; | 708 | struct devid_map *entry; |
709 | struct list_head *list; | 709 | struct list_head *list; |