projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7341c36
)
iommu/omap: Clean up bus_set_iommu()
author
Robin Murphy
<robin.murphy@arm.com>
Mon, 15 Aug 2022 16:20:14 +0000
(17:20 +0100)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 7 Sep 2022 12:26:15 +0000
(14:26 +0200)
Stop calling bus_set_iommu() since it's now unnecessary, and simplify
the init failure path accordingly.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link:
https://lore.kernel.org/r/b578af8e2bf8afeccb2c2ce87c1aa38b36f01331.1660572783.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/omap-iommu.c
b/drivers/iommu/omap-iommu.c
index d9cf2820c02eae1ad3b1c0db47a36074671c7f4c..07ee2600113c20969b8f5b24ae4dfc7fc81be3a3 100644
(file)
--- a/
drivers/iommu/omap-iommu.c
+++ b/
drivers/iommu/omap-iommu.c
@@
-1776,14
+1776,8
@@
static int __init omap_iommu_init(void)
goto fail_driver;
}
- ret = bus_set_iommu(&platform_bus_type, &omap_iommu_ops);
- if (ret)
- goto fail_bus;
-
return 0;
-fail_bus:
- platform_driver_unregister(&omap_iommu_driver);
fail_driver:
kmem_cache_destroy(iopte_cachep);
return ret;