From 0c33a96809e2e82fa5d4bc9dfa061777b6d30b7b Mon Sep 17 00:00:00 2001 From: Kiran Gunda Date: Mon, 21 Oct 2013 00:06:34 +0530 Subject: [PATCH] spmi: Inline a function to remove compilation error Compilation error is seen in spmi_dfs_add_controller function when debug fs is disabled. In this patch this function is defined as static inline to remove this error. CRs-Fixed: 555022 Change-Id: I66ac9ca9eeb1e25c68c9deff665258f4e036a678 Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-dbgfs.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-dbgfs.h b/drivers/spmi/spmi-dbgfs.h index 10e98b9eddb..a419002830a 100644 --- a/drivers/spmi/spmi-dbgfs.h +++ b/drivers/spmi/spmi-dbgfs.h @@ -18,8 +18,14 @@ int spmi_dfs_add_controller(struct spmi_controller *ctrl); int spmi_dfs_del_controller(struct spmi_controller *ctrl); #else -static int spmi_dfs_add_controller(struct spmi_controller *ctrl) { return 0; } -static int spmi_dfs_del_controller(struct spmi_controller *ctrl) { return 0; } +static inline int spmi_dfs_add_controller(struct spmi_controller *ctrl) +{ + return 0; +} +static inline int spmi_dfs_del_controller(struct spmi_controller *ctrl) +{ + return 0; +} #endif struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,