Messages in this thread Patch in this message | | | From | re.emese@gmail ... | Subject | [PATCH 3/3] Constify struct platform_hibernation_ops for 2.6.32-git-053fe57ac v2 | Date | Mon, 14 Dec 2009 01:00:23 +0100 |
| |
From: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Emese Revfy <re.emese@gmail.com> --- kernel/power/hibernate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index bbfe472..2766523 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -49,14 +49,14 @@ enum { static int hibernation_mode = HIBERNATION_SHUTDOWN; -static struct platform_hibernation_ops *hibernation_ops; +static const struct platform_hibernation_ops *hibernation_ops; /** * hibernation_set_ops - set the global hibernate operations * @ops: the hibernation operations to use in subsequent hibernation transitions */ -void hibernation_set_ops(struct platform_hibernation_ops *ops) +void hibernation_set_ops(const struct platform_hibernation_ops *ops) { if (ops && !(ops->begin && ops->end && ops->pre_snapshot && ops->prepare && ops->finish && ops->enter && ops->pre_restore -- 1.6.5.3
| |