summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDaniel Walker <dwalker@codeaurora.org>2010-04-23 11:04:14 -0700
committerDaniel Walker <dwalker@codeaurora.org>2010-05-12 09:19:39 -0700
commit869a2a09e40529f2f3614893c98b27a87a33eaa6 (patch)
treea3efc8463fe2073126b699eba55f72a05e865f93 /arch
parent42df2c99162d1da63f11d073059e9633bfec11d0 (diff)
arm: msm: smd: fix initcall prototype compiler warning
This fixes the following warning, arch/arm/mach-msm/smd_debug.c:240: warning: initialization from incompatible pointer type Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-msm/smd_debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/smd_debug.c b/arch/arm/mach-msm/smd_debug.c
index 0cc3ef8a94d3..3b2dd717b788 100644
--- a/arch/arm/mach-msm/smd_debug.c
+++ b/arch/arm/mach-msm/smd_debug.c
@@ -221,13 +221,13 @@ static void debug_create(const char *name, mode_t mode,
debugfs_create_file(name, mode, dent, fill, &debug_ops);
}
-static void smd_debugfs_init(void)
+static int smd_debugfs_init(void)
{
struct dentry *dent;
dent = debugfs_create_dir("smd", 0);
if (IS_ERR(dent))
- return;
+ return 1;
debug_create("ch", 0444, dent, debug_read_ch);
debug_create("stat", 0444, dent, debug_read_stat);
@@ -235,6 +235,8 @@ static void smd_debugfs_init(void)
debug_create("version", 0444, dent, debug_read_version);
debug_create("tbl", 0444, dent, debug_read_alloc_tbl);
debug_create("build", 0444, dent, debug_read_build_id);
+
+ return 0;
}
late_initcall(smd_debugfs_init);