OSDN Git Service

ARM: imx: Make reset_control_ops const
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 25 Feb 2016 09:44:41 +0000 (10:44 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 29 Feb 2016 02:37:44 +0000 (10:37 +0800)
The imx_src_ops structure is never modified. Make it const.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/src.c

index 45f7f4e..70b083f 100644 (file)
@@ -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,
 };