mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
rk: clock: fix compile error when build without PROC_FS support
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user