diff options
author | Robert Richter <robert.richter@amd.com> | 2010-10-15 05:28:07 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2010-10-15 06:47:18 -0400 |
commit | cd254f295248c98b62ea824f361e10d80a081fe7 (patch) | |
tree | eef867346f4e41db9067f8628f6ec596b47e7313 | |
parent | b3b3a9b63f2deacfd59137e3781211d21a568ca9 (diff) |
oprofile: make !CONFIG_PM function stubs static inline
Make !CONFIG_PM function stubs static inline and remove section
attribute.
Signed-off-by: Robert Richter <robert.richter@amd.com>
-rw-r--r-- | drivers/oprofile/oprofile_perf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/oprofile/oprofile_perf.c b/drivers/oprofile/oprofile_perf.c index 36ec67e3d91d..9046f7b2ed79 100644 --- a/drivers/oprofile/oprofile_perf.c +++ b/drivers/oprofile/oprofile_perf.c | |||
@@ -190,6 +190,7 @@ static void oprofile_perf_stop(void) | |||
190 | } | 190 | } |
191 | 191 | ||
192 | #ifdef CONFIG_PM | 192 | #ifdef CONFIG_PM |
193 | |||
193 | static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state) | 194 | static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state) |
194 | { | 195 | { |
195 | mutex_lock(&oprofile_perf_mutex); | 196 | mutex_lock(&oprofile_perf_mutex); |
@@ -241,9 +242,12 @@ static void exit_driverfs(void) | |||
241 | platform_device_unregister(oprofile_pdev); | 242 | platform_device_unregister(oprofile_pdev); |
242 | platform_driver_unregister(&oprofile_driver); | 243 | platform_driver_unregister(&oprofile_driver); |
243 | } | 244 | } |
245 | |||
244 | #else | 246 | #else |
245 | static int __init init_driverfs(void) { return 0; } | 247 | |
246 | #define exit_driverfs() do { } while (0) | 248 | static inline int init_driverfs(void) { return 0; } |
249 | static inline void exit_driverfs(void) { } | ||
250 | |||
247 | #endif /* CONFIG_PM */ | 251 | #endif /* CONFIG_PM */ |
248 | 252 | ||
249 | void oprofile_perf_exit(void) | 253 | void oprofile_perf_exit(void) |