Skip to contentSkip to conversation

amba: Move AHB to core_initcall

PATCH Superseded Hiroshi Doyu 1 participant 1 message Jun 26, 2013

Subsystems (2)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 9/23 amba: Move AHB to core_initcall

Move AHB to core_initcall in order to instanciate this device earlier than others since IOMMU depends on AHB and then IOMMU driver needs to reigster other platform devices as IOMMU'able.

---
 drivers/amba/tegra-ahb.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/amba/tegra-ahb.c +6 -1
index 1f44e56..08e898d 100644
@@ -283,7 +283,12 @@ static struct platform_driver tegra_ahb_driver = {
 		.pm = &tegra_ahb_pm,
 	},
 };
-module_platform_driver(tegra_ahb_driver);
+
+static int tegra_ahb_init(void)
+{
+	return platform_driver_register(&tegra_ahb_driver);
+}
+core_initcall(tegra_ahb_init);
 
 MODULE_AUTHOR("Hiroshi DOYU <[email protected]>");
 MODULE_DESCRIPTION("Tegra AHB driver");
Signature · 1 line
1.8.1.5