diff options
author | Daniel Walker <dwalker@codeaurora.org> | 2010-04-23 14:04:14 -0400 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:19:39 -0400 |
commit | 869a2a09e40529f2f3614893c98b27a87a33eaa6 (patch) | |
tree | a3efc8463fe2073126b699eba55f72a05e865f93 /arch/arm | |
parent | 42df2c99162d1da63f11d073059e9633bfec11d0 (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.c | 6 |
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 | ||
224 | static void smd_debugfs_init(void) | 224 | static 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 | ||
240 | late_initcall(smd_debugfs_init); | 242 | late_initcall(smd_debugfs_init); |