diff options
| author | Robin Murphy <robin.murphy@arm.com> | 2018-01-09 11:17:26 -0500 |
|---|---|---|
| committer | Joerg Roedel <jroedel@suse.de> | 2018-01-17 09:25:49 -0500 |
| commit | e7747d88e05eabed6fd921c3636a9d1f5b4f754f (patch) | |
| tree | 0dc77ee2c04102a29b9b3a4f05c90a167a2456b0 | |
| parent | 892d7aaddb24b0d3eaf05534ed29a264d3b52646 (diff) | |
iommu/ipmmu-vmsa: Remove redundant of_iommu_init_fn hook
Having of_iommu_init() call ipmmu_init() via ipmmu_vmsa_iommu_of_setup()
does nothing that the subsys_initcall wouldn't do slightly later anyway,
since probe-deferral of masters means it is no longer critical to
register the driver super-early. Clean it up.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
| -rw-r--r-- | drivers/iommu/ipmmu-vmsa.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 8dce3a9de9d8..331dad909301 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c | |||
| @@ -1108,18 +1108,8 @@ static void __exit ipmmu_exit(void) | |||
| 1108 | subsys_initcall(ipmmu_init); | 1108 | subsys_initcall(ipmmu_init); |
| 1109 | module_exit(ipmmu_exit); | 1109 | module_exit(ipmmu_exit); |
| 1110 | 1110 | ||
| 1111 | #ifdef CONFIG_IOMMU_DMA | 1111 | IOMMU_OF_DECLARE(ipmmu_vmsa_iommu_of, "renesas,ipmmu-vmsa", NULL); |
| 1112 | static int __init ipmmu_vmsa_iommu_of_setup(struct device_node *np) | 1112 | IOMMU_OF_DECLARE(ipmmu_r8a7795_iommu_of, "renesas,ipmmu-r8a7795", NULL); |
| 1113 | { | ||
| 1114 | ipmmu_init(); | ||
| 1115 | return 0; | ||
| 1116 | } | ||
| 1117 | |||
| 1118 | IOMMU_OF_DECLARE(ipmmu_vmsa_iommu_of, "renesas,ipmmu-vmsa", | ||
| 1119 | ipmmu_vmsa_iommu_of_setup); | ||
| 1120 | IOMMU_OF_DECLARE(ipmmu_r8a7795_iommu_of, "renesas,ipmmu-r8a7795", | ||
| 1121 | ipmmu_vmsa_iommu_of_setup); | ||
| 1122 | #endif | ||
| 1123 | 1113 | ||
| 1124 | MODULE_DESCRIPTION("IOMMU API for Renesas VMSA-compatible IPMMU"); | 1114 | MODULE_DESCRIPTION("IOMMU API for Renesas VMSA-compatible IPMMU"); |
| 1125 | MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>"); | 1115 | MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>"); |
