Skip to content

Commit

Permalink
iommu/amd: Move add_special_device() to __init
Browse files Browse the repository at this point in the history
The function is only called by other __init functions, so it
can be moved to __init too.

Reviewed-by: Shuah Khan <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
joergroedel committed Apr 19, 2013
1 parent 197887f commit d3da220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3da220

Please sign in to comment.