From: Philipp Zabel Date: Sun, 17 Jan 2016 14:14:52 +0000 (+0100) Subject: reset: zynq: Make reset_control_ops const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=356d108f8780b58a6aa966e17d64f332f1917730;p=linux-beck.git reset: zynq: Make reset_control_ops const The zynq_reset_ops structure is never modified. Make it const. Signed-off-by: Philipp Zabel --- diff --git a/drivers/reset/reset-zynq.c b/drivers/reset/reset-zynq.c index c6b3cd8b40ad..a7e87bc45885 100644 --- a/drivers/reset/reset-zynq.c +++ b/drivers/reset/reset-zynq.c @@ -86,7 +86,7 @@ static int zynq_reset_status(struct reset_controller_dev *rcdev, return !!(reg & BIT(offset)); } -static struct reset_control_ops zynq_reset_ops = { +static const struct reset_control_ops zynq_reset_ops = { .assert = zynq_reset_assert, .deassert = zynq_reset_deassert, .status = zynq_reset_status,