diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-30 22:18:20 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-31 19:56:33 +1000 |
commit | 7def9a2418430a8af2a56023769ccdcdea7cd7e1 (patch) | |
tree | f92a8bb8a64f7f06a624a0afbd2618acfe41627b /arch/powerpc/platforms/4xx/cpm.c | |
parent | 96d91431d6915073c539c8bdd439b4c863148fc1 (diff) | |
download | talos-obmc-linux-7def9a2418430a8af2a56023769ccdcdea7cd7e1.tar.gz talos-obmc-linux-7def9a2418430a8af2a56023769ccdcdea7cd7e1.zip |
powerpc/4xx: Constify cpm_suspend_ops
struct platform_suspend_ops are not supposed to change at runtime.
Functions suspend_set_ops working with const platform_suspend_ops. So
mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/4xx/cpm.c')
-rw-r--r-- | arch/powerpc/platforms/4xx/cpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/4xx/cpm.c b/arch/powerpc/platforms/4xx/cpm.c index ac7af8b5ffa1..53ff81ca8a3c 100644 --- a/arch/powerpc/platforms/4xx/cpm.c +++ b/arch/powerpc/platforms/4xx/cpm.c @@ -240,7 +240,7 @@ static int cpm_suspend_enter(suspend_state_t state) return 0; } -static struct platform_suspend_ops cpm_suspend_ops = { +static const struct platform_suspend_ops cpm_suspend_ops = { .valid = cpm_suspend_valid, .enter = cpm_suspend_enter, }; |