Skip to content

Commit

Permalink
iommu/arm-smmu: Switch to subsys_initcall for driver registration
Browse files Browse the repository at this point in the history
This should ensure that arm-smmu is initialized before other drivers
start handling devices that propably need smmu support.

Signed-off-by: Andreas Herrmann <andreas.herrmann@calxeda.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Andreas Herrmann authored and Will Deacon committed Oct 9, 2013
1 parent 2572484 commit b1950b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/arm-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ static void __exit arm_smmu_exit(void)
return platform_driver_unregister(&arm_smmu_driver);
}

module_init(arm_smmu_init);
subsys_initcall(arm_smmu_init);
module_exit(arm_smmu_exit);

MODULE_DESCRIPTION("IOMMU API for ARM architected SMMU implementations");
Expand Down

0 comments on commit b1950b2

Please sign in to comment.