Skip to content

Commit

Permalink
arm: msm: smd: fix initcall prototype compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Walker committed May 12, 2010
1 parent 42df2c9 commit 869a2a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/arm/mach-msm/smd_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,22 @@ 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);
debug_create("mem", 0444, dent, debug_read_mem);
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);
Expand Down

0 comments on commit 869a2a0

Please sign in to comment.