rk: clock: fix compile error when build without PROC_FS support

This commit is contained in:
黄涛
2013-05-24 18:11:56 +08:00
parent 9b5d00c026
commit b2755f6173
2 changed files with 3 additions and 1 deletions

View File

@@ -710,12 +710,14 @@ cnu_out:
}
EXPORT_SYMBOL(clk_notifier_unregister);
#ifdef CONFIG_PROC_FS
static struct clk_dump_ops *dump_def_ops;
void clk_register_dump_ops(struct clk_dump_ops *ops)
{
dump_def_ops=ops;
}
#endif
#ifdef CONFIG_RK_CLOCK_PROC
static int proc_clk_show(struct seq_file *s, void *v)

View File

@@ -98,7 +98,7 @@ struct clk_dump_ops {
void clk_register_dump_ops(struct clk_dump_ops *ops);
#else
static inline void clk_register_dump_ops(struct clk_dump_ops *ops) {}
#define clk_register_dump_ops(ops) do {} while (0)
#endif
/**