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: Chunfeng Yun <[email protected]> Cc: David Lechner <[email protected]> Cc: GSS_MTK_Uboot_upstream <[email protected]> Cc: Igor Belwon <[email protected]> Cc: Jaehoon Chung <[email protected]> Cc: Julien Stephan <[email protected]> Cc: Peng Fan <[email protected]> Cc: Ryder Lee <[email protected]> Cc: Tom Rini <[email protected]> Cc: Weijie Gao <[email protected]> Cc: [email protected] --- drivers/power/domain/mtk-power-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c index 2d1ba1855a5..24dd540897d 100644 --- a/drivers/power/domain/mtk-power-domain.c +++ b/drivers/power/domain/mtk-power-domain.c @@ -392,7 +392,7 @@ static const struct udevice_id mtk_power_domain_ids[] = { { /* sentinel */ } }; -struct power_domain_ops mtk_power_domain_ops = { +static const struct power_domain_ops mtk_power_domain_ops = { .off = scpsys_power_off, .on = scpsys_power_on, .request = scpsys_power_request, -- 2.53.0

