From: Philipp Zabel Date: Thu, 25 Feb 2016 09:45:06 +0000 (+0100) Subject: clk: mediatek: Make reset_control_ops const X-Git-Tag: v4.9.8~2053^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f39bb4579cbf3ff174d936d37aa3669eb98370c6;p=platform%2Fkernel%2Flinux-rpi3.git clk: mediatek: Make reset_control_ops const The mtk_reset_ops structure is never modified. Make it const. Signed-off-by: Philipp Zabel Reviewed-by: Matthias Brugger Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/mediatek/reset.c b/drivers/clk/mediatek/reset.c index 9e9fe4b..309049d 100644 --- a/drivers/clk/mediatek/reset.c +++ b/drivers/clk/mediatek/reset.c @@ -57,7 +57,7 @@ static int mtk_reset(struct reset_controller_dev *rcdev, return mtk_reset_deassert(rcdev, id); } -static struct reset_control_ops mtk_reset_ops = { +static const struct reset_control_ops mtk_reset_ops = { .assert = mtk_reset_assert, .deassert = mtk_reset_deassert, .reset = mtk_reset,