diff mbox series

iommu: exynos: Remove __init annotation from exynos_sysmmu_probe()

Message ID 20190812103246.18049-1-m.szyprowski@samsung.com
State New
Headers show
Series iommu: exynos: Remove __init annotation from exynos_sysmmu_probe() | expand

Commit Message

Marek Szyprowski Aug. 12, 2019, 10:32 a.m. UTC
Exynos SYSMMU driver supports deferred probe. It happens when clocks
needed for this driver are not yet available. Typically next calls to
driver ->probe() happen before init section is free, but this is not
really guaranteed. To make if safe, remove __init annotation from
exynos_sysmmu_probe() function.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

---
 drivers/iommu/exynos-iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

Comments

Joerg Roedel Aug. 14, 2019, 8:51 a.m. UTC | #1
On Mon, Aug 12, 2019 at 12:32:46PM +0200, Marek Szyprowski wrote:
> Exynos SYSMMU driver supports deferred probe. It happens when clocks

> needed for this driver are not yet available. Typically next calls to

> driver ->probe() happen before init section is free, but this is not

> really guaranteed. To make if safe, remove __init annotation from

> exynos_sysmmu_probe() function.

> 

> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>


Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index b0c1e5f9daae..a48236c1d5cb 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -566,7 +566,7 @@  static void sysmmu_tlb_invalidate_entry(struct sysmmu_drvdata *data,
 
 static const struct iommu_ops exynos_iommu_ops;
 
-static int __init exynos_sysmmu_probe(struct platform_device *pdev)
+static int exynos_sysmmu_probe(struct platform_device *pdev)
 {
 	int irq, ret;
 	struct device *dev = &pdev->dev;