diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-07-21 18:37:25 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2009-07-23 18:17:28 -0400 |
commit | d9ab77161d811ffb0bccf396f7155cc905c1b9e1 (patch) | |
tree | 6d055acd69351a56b7014388e24d33199139d79c /drivers/base/platform.c | |
parent | 511647ff58fd0f1c1f415d2c757d841650edac91 (diff) |
Driver Core: Make PM operations a const pointer
They are not supposed to be modified by drivers, so make them const.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 455e55971d0e..ae5c4aa6d269 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -889,7 +889,7 @@ static int platform_pm_restore_noirq(struct device *dev) | |||
889 | 889 | ||
890 | #endif /* !CONFIG_HIBERNATION */ | 890 | #endif /* !CONFIG_HIBERNATION */ |
891 | 891 | ||
892 | static struct dev_pm_ops platform_dev_pm_ops = { | 892 | static const struct dev_pm_ops platform_dev_pm_ops = { |
893 | .prepare = platform_pm_prepare, | 893 | .prepare = platform_pm_prepare, |
894 | .complete = platform_pm_complete, | 894 | .complete = platform_pm_complete, |
895 | .suspend = platform_pm_suspend, | 895 | .suspend = platform_pm_suspend, |