From: Philipp Zabel
Date: Thu, 25 Feb 2016 09:44:41 +0000 (+0100)
Subject: ARM: imx: Make reset_control_ops const
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2443b2e6167e80eca9a068d5ecc0e6f081b3ca4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git
ARM: imx: Make reset_control_ops const
The imx_src_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel
Signed-off-by: Shawn Guo
---
diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 45f7f4e0a447..70b083fe934a 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -73,7 +73,7 @@ static int imx_src_reset_module(struct reset_controller_dev *rcdev,
return 0;
}
-static struct reset_control_ops imx_src_ops = {
+static const struct reset_control_ops imx_src_ops = {
.reset = imx_src_reset_module,
};