diff options
author | Lionel Debroux <lionel_debroux@yahoo.fr> | 2010-11-16 08:14:02 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-11-16 08:14:02 -0500 |
commit | 2f55ac072f5344519348c0c94b3d2f4cca46847b (patch) | |
tree | f3d544ab2812503b12a205b2515111a796638ffb /arch/arm/mach-omap2 | |
parent | acc2472ed33fc5e72482cc3b3b846077d97c2f8b (diff) |
suspend: constify platform_suspend_ops
While at it, fix two checkpatch errors.
Several non-const struct instances constified by this patch were added after
the introduction of platform_suspend_ops in checkpatch.pl's list of "should
be const" structs (79404849e90a41ea2109bd0e2f7c7164b0c4ce73).
Patch against mainline.
Inspired by hunks of the grsecurity patch, updated for newer kernels.
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/pm24xx.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/pm44xx.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index a40457d81927..aa9764eeb941 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -326,7 +326,7 @@ static void omap2_pm_finish(void) | |||
326 | enable_hlt(); | 326 | enable_hlt(); |
327 | } | 327 | } |
328 | 328 | ||
329 | static struct platform_suspend_ops omap_pm_ops = { | 329 | static const struct platform_suspend_ops omap_pm_ops = { |
330 | .prepare = omap2_pm_prepare, | 330 | .prepare = omap2_pm_prepare, |
331 | .enter = omap2_pm_enter, | 331 | .enter = omap2_pm_enter, |
332 | .finish = omap2_pm_finish, | 332 | .finish = omap2_pm_finish, |
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 75c0cd13ad8e..4000c3c8bbd5 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -594,7 +594,7 @@ static void omap3_pm_end(void) | |||
594 | return; | 594 | return; |
595 | } | 595 | } |
596 | 596 | ||
597 | static struct platform_suspend_ops omap_pm_ops = { | 597 | static const struct platform_suspend_ops omap_pm_ops = { |
598 | .begin = omap3_pm_begin, | 598 | .begin = omap3_pm_begin, |
599 | .end = omap3_pm_end, | 599 | .end = omap3_pm_end, |
600 | .prepare = omap3_pm_prepare, | 600 | .prepare = omap3_pm_prepare, |
diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index 54544b4fc76b..dc8b1ef9f84c 100644 --- a/arch/arm/mach-omap2/pm44xx.c +++ b/arch/arm/mach-omap2/pm44xx.c | |||
@@ -75,7 +75,7 @@ static void omap4_pm_end(void) | |||
75 | return; | 75 | return; |
76 | } | 76 | } |
77 | 77 | ||
78 | static struct platform_suspend_ops omap_pm_ops = { | 78 | static const struct platform_suspend_ops omap_pm_ops = { |
79 | .begin = omap4_pm_begin, | 79 | .begin = omap4_pm_begin, |
80 | .end = omap4_pm_end, | 80 | .end = omap4_pm_end, |
81 | .prepare = omap4_pm_prepare, | 81 | .prepare = omap4_pm_prepare, |