Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/reset/reset-at91.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/reset/reset-at91.c b/drivers/reset/reset-at91.c
index 165c87acdc4..ebbfae1469b 100644
--- a/drivers/reset/reset-at91.c
+++ b/drivers/reset/reset-at91.c
@@ -79,7 +79,7 @@ static int at91_rst_deassert(struct reset_ctl *reset_ctl)
        return at91_rst_update(reset, reset_ctl->id, false);
 }
 
-struct reset_ops at91_reset_ops = {
+static const struct reset_ops at91_reset_ops = {
        .of_xlate = at91_reset_of_xlate,
        .rst_assert = at91_rst_assert,
        .rst_deassert = at91_rst_deassert,
-- 
2.53.0

Reply via email to