From: Philipp Zabel
Date: Thu, 25 Feb 2016 09:45:47 +0000 (+0100)
Subject: MIPS: ralink: Make reset_control_ops const
X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b11d022767f78357f08bc3d548e99af1c6cf7808;p=linux-beck.git
MIPS: ralink: Make reset_control_ops const
The reset_ops structure is never modified. Make it const.
Signed-off-by: Philipp Zabel
Acked-by: John Crispin
Cc: linux-mips@linux-mips.org
Cc: kernel@pengutronix.de
Patchwork: https://patchwork.linux-mips.org/patch/12618/
Signed-off-by: Ralf Baechle
---
diff --git a/arch/mips/ralink/reset.c b/arch/mips/ralink/reset.c
index ee117c4bc4a3..09ccdd1b8f4d 100644
--- a/arch/mips/ralink/reset.c
+++ b/arch/mips/ralink/reset.c
@@ -61,7 +61,7 @@ static int ralink_reset_device(struct reset_controller_dev *rcdev,
return ralink_deassert_device(rcdev, id);
}
-static struct reset_control_ops reset_ops = {
+static const struct reset_control_ops reset_ops = {
.reset = ralink_reset_device,
.assert = ralink_assert_device,
.deassert = ralink_deassert_device,