mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
![Chen-Yu Tsai](/assets/img/avatar_default.png)
of_clk_set_defaults uses the type 'bool', but clk-conf.h does not include its definition. This results in a compile error when only clk-conf.h is used. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
22 lines
588 B
C
22 lines
588 B
C
/*
|
|
* Copyright (C) 2014 Samsung Electronics Co., Ltd.
|
|
* Sylwester Nawrocki <s.nawrocki@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device_node;
|
|
|
|
#if defined(CONFIG_OF) && defined(CONFIG_COMMON_CLK)
|
|
int of_clk_set_defaults(struct device_node *node, bool clk_supplier);
|
|
#else
|
|
static inline int of_clk_set_defaults(struct device_node *node,
|
|
bool clk_supplier)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|