mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
42df2c9916
commit
869a2a09e4
|
@ -221,13 +221,13 @@ static void debug_create(const char *name, mode_t mode,
|
||||||
debugfs_create_file(name, mode, dent, fill, &debug_ops);
|
debugfs_create_file(name, mode, dent, fill, &debug_ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void smd_debugfs_init(void)
|
static int smd_debugfs_init(void)
|
||||||
{
|
{
|
||||||
struct dentry *dent;
|
struct dentry *dent;
|
||||||
|
|
||||||
dent = debugfs_create_dir("smd", 0);
|
dent = debugfs_create_dir("smd", 0);
|
||||||
if (IS_ERR(dent))
|
if (IS_ERR(dent))
|
||||||
return;
|
return 1;
|
||||||
|
|
||||||
debug_create("ch", 0444, dent, debug_read_ch);
|
debug_create("ch", 0444, dent, debug_read_ch);
|
||||||
debug_create("stat", 0444, dent, debug_read_stat);
|
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("version", 0444, dent, debug_read_version);
|
||||||
debug_create("tbl", 0444, dent, debug_read_alloc_tbl);
|
debug_create("tbl", 0444, dent, debug_read_alloc_tbl);
|
||||||
debug_create("build", 0444, dent, debug_read_build_id);
|
debug_create("build", 0444, dent, debug_read_build_id);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
late_initcall(smd_debugfs_init);
|
late_initcall(smd_debugfs_init);
|
||||||
|
|
Loading…
Reference in New Issue