Skip to content

Commit

Permalink
powerpc/4xx: Constify cpm_suspend_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arvind Yadav authored and Michael Ellerman committed Aug 31, 2017
1 parent 96d9143 commit 7def9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/4xx/cpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 7def9a2

Please sign in to comment.