struct clk;
- #ifdef CONFIG_COMMON_CLK
-
/**
* DOC: clk notifier callback types
*
unsigned long new_rate;
};
+ #ifdef CONFIG_COMMON_CLK
+
/**
* clk_notifier_register: register a clock rate-change notifier callback
* @clk: clock whose rate we are interested in
#else
+ static inline int clk_notifier_register(struct clk *clk,
+ struct notifier_block *nb)
+ {
+ return -ENOTSUPP;
+ }
+
+ static inline int clk_notifier_unregister(struct clk *clk,
+ struct notifier_block *nb)
+ {
+ return -ENOTSUPP;
+ }
+
static inline long clk_get_accuracy(struct clk *clk)
{
return -ENOTSUPP;
return NULL;
}
+static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id)
+{
+ return NULL;
+}
#endif
/* clk_prepare_enable helps cases using clk_enable in non-atomic context. */