staging: gasket: fix check_and_invoke_callback log param
[linux-2.6/btrfs-unstable.git] / include / linux / of_clk.h
blobb27da9f164cbd22165b848b5e4bf0325e84c9d76
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * OF clock helpers
4 */
6 #ifndef __LINUX_OF_CLK_H
7 #define __LINUX_OF_CLK_H
9 #if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF)
11 unsigned int of_clk_get_parent_count(struct device_node *np);
12 const char *of_clk_get_parent_name(struct device_node *np, int index);
13 void of_clk_init(const struct of_device_id *matches);
15 #else /* !CONFIG_COMMON_CLK || !CONFIG_OF */
17 static inline unsigned int of_clk_get_parent_count(struct device_node *np)
19 return 0;
21 static inline const char *of_clk_get_parent_name(struct device_node *np,
22 int index)
24 return NULL;
26 static inline void of_clk_init(const struct of_device_id *matches) {}
28 #endif /* !CONFIG_COMMON_CLK || !CONFIG_OF */
30 #endif /* __LINUX_OF_CLK_H */