[PATCH] soc: dove: Make reset_control_ops const

Philipp Zabel p.zabel at pengutronix.de
Thu Feb 25 01:46:08 PST 2016


The pmu_reset_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
Since commit 203d4f347d86 ("reset: Make reset_control_ops const") marked
the ops pointer in struct reset_controller_dev as const, this struct can
be made const, too. The commit is currently sitting in the
arm-soc/for-next branch.
---
 drivers/soc/dove/pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/dove/pmu.c b/drivers/soc/dove/pmu.c
index 039374e..95d77ec 100644
--- a/drivers/soc/dove/pmu.c
+++ b/drivers/soc/dove/pmu.c
@@ -87,7 +87,7 @@ static int pmu_reset_deassert(struct reset_controller_dev *rc, unsigned long id)
 	return 0;
 }
 
-static struct reset_control_ops pmu_reset_ops = {
+static const struct reset_control_ops pmu_reset_ops = {
 	.reset = pmu_reset_reset,
 	.assert = pmu_reset_assert,
 	.deassert = pmu_reset_deassert,
-- 
2.7.0




More information about the linux-arm-kernel mailing list