aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/ccree
diff options
context:
space:
mode:
authorGravatar Arvind Yadav <arvind.yadav.cs@gmail.com> 2017-08-08 14:53:59 +0530
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2017-08-16 15:10:42 -0700
commit22d82cb952f3c949078c6df4b0a5ea719b18cadc (patch)
tree25af16fb654eb2e6a35ad348c4e2e9021236be14 /drivers/staging/ccree
parentstaging: ccree: Use sizeof(variable) in memory allocs (diff)
downloadlinux-22d82cb952f3c949078c6df4b0a5ea719b18cadc.tar.gz
linux-22d82cb952f3c949078c6df4b0a5ea719b18cadc.tar.bz2
linux-22d82cb952f3c949078c6df4b0a5ea719b18cadc.zip
staging: ccree: constify dev_pm_ops structures.
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by <linux/device.h> work with const dev_pm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree')
-rw-r--r--drivers/staging/ccree/ssi_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c
index 88b68c81556c..9c6f1200c130 100644
--- a/drivers/staging/ccree/ssi_driver.c
+++ b/drivers/staging/ccree/ssi_driver.c
@@ -550,7 +550,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