We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b3a9b commit cd254f2Copy full SHA for cd254f2
drivers/oprofile/oprofile_perf.c
@@ -190,6 +190,7 @@ static void oprofile_perf_stop(void)
190
}
191
192
#ifdef CONFIG_PM
193
+
194
static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state)
195
{
196
mutex_lock(&oprofile_perf_mutex);
@@ -241,9 +242,12 @@ static void exit_driverfs(void)
241
242
platform_device_unregister(oprofile_pdev);
243
platform_driver_unregister(&oprofile_driver);
244
245
246
#else
-static int __init init_driverfs(void) { return 0; }
-#define exit_driverfs() do { } while (0)
247
248
+static inline int init_driverfs(void) { return 0; }
249
+static inline void exit_driverfs(void) { }
250
251
#endif /* CONFIG_PM */
252
253
void oprofile_perf_exit(void)
0 commit comments