Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 516cbc79 authored by Stepan Moskovchenko's avatar Stepan Moskovchenko Committed by Daniel Walker
Browse files

msm: iommu: Mark functions with the right section names



Mark the init and exit functions as __init and __exit where
appropriate.

Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: default avatarDaniel Walker <dwalker@codeaurora.org>
parent e8952e3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -826,7 +826,7 @@ static struct msm_iommu_ctx_dev *msm_iommu_ctx_data[] = {
	&gfx2d1_2d1_ctx,
};

static int msm8x60_iommu_init(void)
static int __init msm8x60_iommu_init(void)
{
	int ret, i;

@@ -886,7 +886,7 @@ static int msm8x60_iommu_init(void)
	return ret;
}

static void msm8x60_iommu_exit(void)
static void __exit msm8x60_iommu_exit(void)
{
	int i;

+1 −1
Original line number Diff line number Diff line
@@ -585,7 +585,7 @@ static struct iommu_ops msm_iommu_ops = {
	.domain_has_cap = msm_iommu_domain_has_cap
};

static int msm_iommu_init(void)
static int __init msm_iommu_init(void)
{
	register_iommu(&msm_iommu_ops);
	return 0;
+2 −2
Original line number Diff line number Diff line
@@ -346,7 +346,7 @@ static struct platform_driver msm_iommu_ctx_driver = {
	.remove		= msm_iommu_ctx_remove,
};

static int msm_iommu_driver_init(void)
static int __init msm_iommu_driver_init(void)
{
	int ret;
	ret = platform_driver_register(&msm_iommu_driver);
@@ -365,7 +365,7 @@ static int msm_iommu_driver_init(void)
	return ret;
}

static void msm_iommu_driver_exit(void)
static void __exit msm_iommu_driver_exit(void)
{
	platform_driver_unregister(&msm_iommu_ctx_driver);
	platform_driver_unregister(&msm_iommu_driver);