diff options
Diffstat (limited to 'drivers/oprofile/oprofile_perf.c')
| -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) |
