aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorDaniel Walker <dwalker@codeaurora.org>2010-04-23 14:04:14 -0400
committerDaniel Walker <dwalker@codeaurora.org>2010-05-12 12:19:39 -0400
commit869a2a09e40529f2f3614893c98b27a87a33eaa6 (patch)
treea3efc8463fe2073126b699eba55f72a05e865f93 /arch/arm
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/arm')
-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,
221 debugfs_create_file(name, mode, dent, fill, &debug_ops); 221 debugfs_create_file(name, mode, dent, fill, &debug_ops);
222} 222}
223 223
224static void smd_debugfs_init(void) 224static int smd_debugfs_init(void)
225{ 225{
226 struct dentry *dent; 226 struct dentry *dent;
227 227
228 dent = debugfs_create_dir("smd", 0); 228 dent = debugfs_create_dir("smd", 0);
229 if (IS_ERR(dent)) 229 if (IS_ERR(dent))
230 return; 230 return 1;
231 231
232 debug_create("ch", 0444, dent, debug_read_ch); 232 debug_create("ch", 0444, dent, debug_read_ch);
233 debug_create("stat", 0444, dent, debug_read_stat); 233 debug_create("stat", 0444, dent, debug_read_stat);
@@ -235,6 +235,8 @@ static void smd_debugfs_init(void)
235 debug_create("version", 0444, dent, debug_read_version); 235 debug_create("version", 0444, dent, debug_read_version);
236 debug_create("tbl", 0444, dent, debug_read_alloc_tbl); 236 debug_create("tbl", 0444, dent, debug_read_alloc_tbl);
237 debug_create("build", 0444, dent, debug_read_build_id); 237 debug_create("build", 0444, dent, debug_read_build_id);
238
239 return 0;
238} 240}
239 241
240late_initcall(smd_debugfs_init); 242late_initcall(smd_debugfs_init);