Make !CONFIG_PM function stubs static inline and remove section
attribute.
Signed-off-by: Robert Richter <robert.richter@amd.com>
}
#ifdef CONFIG_PM
+
static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state)
{
mutex_lock(&oprofile_perf_mutex);
platform_device_unregister(oprofile_pdev);
platform_driver_unregister(&oprofile_driver);
}
+
#else
-static int __init init_driverfs(void) { return 0; }
-#define exit_driverfs() do { } while (0)
+
+static inline int init_driverfs(void) { return 0; }
+static inline void exit_driverfs(void) { }
+
#endif /* CONFIG_PM */
void oprofile_perf_exit(void)