Skip to contentSkip to conversation

staging:ccree:constify dev_pm_ops

PATCH New Doug Wilson 1 participant 1 message Aug 8, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging:ccree:constify dev_pm_ops

dev_pm_ops is not supposed to change at runtime. Marking it constant.

---
 drivers/staging/ccree/ssi_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/ccree/ssi_driver.c +1 -1
index 78709b92..778fbb2 100644
@@ -546,7 +546,7 @@ static int cc7x_remove(struct platform_device *plat_dev)
 }
 
 #if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
-static struct dev_pm_ops arm_cc7x_driver_pm = {
+static const struct dev_pm_ops arm_cc7x_driver_pm = {
 	SET_RUNTIME_PM_OPS(ssi_power_mgr_runtime_suspend, ssi_power_mgr_runtime_resume, NULL)
 };
 #endif
Signature · 1 line
2.7.4