Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3da2200 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarShuah Khan <shuahkhan@gmail.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent 197887f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;