diff options
author | Hector Martin <marcan@marcan.st> | 2022-05-02 11:22:38 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-05-04 10:36:25 +0200 |
commit | 2ac2fab52917ae82cbca97cf6e5d2993530257ed (patch) | |
tree | 04609a54b51719c9afaf2442fcf622362f7b7029 /drivers/iommu/apple-dart.c | |
parent | iommu/dart: check return value after calling platform_get_resource() (diff) | |
download | linux-2ac2fab52917ae82cbca97cf6e5d2993530257ed.tar.xz linux-2ac2fab52917ae82cbca97cf6e5d2993530257ed.zip |
iommu/dart: Add missing module owner to ops structure
This is required to make loading this as a module work.
Signed-off-by: Hector Martin <marcan@marcan.st>
Fixes: 46d1fb072e76 ("iommu/dart: Add DART iommu driver")
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/20220502092238.30486-1-marcan@marcan.st
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/apple-dart.c')
-rw-r--r-- | drivers/iommu/apple-dart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/apple-dart.c b/drivers/iommu/apple-dart.c index 15b77f16cfa3..8af0242a90d9 100644 --- a/drivers/iommu/apple-dart.c +++ b/drivers/iommu/apple-dart.c @@ -773,6 +773,7 @@ static const struct iommu_ops apple_dart_iommu_ops = { .get_resv_regions = apple_dart_get_resv_regions, .put_resv_regions = generic_iommu_put_resv_regions, .pgsize_bitmap = -1UL, /* Restricted during dart probe */ + .owner = THIS_MODULE, .default_domain_ops = &(const struct iommu_domain_ops) { .attach_dev = apple_dart_attach_dev, .detach_dev = apple_dart_detach_dev, |