diff options
author | Robin Murphy <robin.murphy@arm.com> | 2021-04-01 15:56:26 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-04-16 17:20:45 +0200 |
commit | 2d471b20c55e13c98d1dba413bf2de618e89cdac (patch) | |
tree | fe16cf7ce737c7c60d0cd414199cab0bfb4aea47 /drivers/iommu/fsl_pamu_domain.c | |
parent | iommu: Statically set module owner (diff) | |
download | linux-2d471b20c55e13c98d1dba413bf2de618e89cdac.tar.xz linux-2d471b20c55e13c98d1dba413bf2de618e89cdac.zip |
iommu: Streamline registration interface
Rather than have separate opaque setter functions that are easy to
overlook and lead to repetitive boilerplate in drivers, let's pass the
relevant initialisation parameters directly to iommu_device_register().
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/ab001b87c533b6f4db71eb90db6f888953986c36.1617285386.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/fsl_pamu_domain.c')
-rw-r--r-- | drivers/iommu/fsl_pamu_domain.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c index 0ac781186dbd..a47f47307109 100644 --- a/drivers/iommu/fsl_pamu_domain.c +++ b/drivers/iommu/fsl_pamu_domain.c @@ -474,9 +474,7 @@ int __init pamu_domain_init(void) if (ret) return ret; - iommu_device_set_ops(&pamu_iommu, &fsl_pamu_ops); - - ret = iommu_device_register(&pamu_iommu); + ret = iommu_device_register(&pamu_iommu, &fsl_pamu_ops, NULL); if (ret) { iommu_device_sysfs_remove(&pamu_iommu); pr_err("Can't register iommu device\n"); |