Re: [PATCH 2/2] clk: core: link consumer with clock driver

From: Stephen Boyd
Date: Fri Nov 30 2018 - 04:26:24 EST


Quoting Miquel Raynal (2018-11-23 01:11:32)
> Would you agree with me adding dummy functions in the #else section
> like:
>
> static inline void __clk_device_link(struct device *consumer, struct clk *clk)
> {
> return;
> }
>
> static inline void __clk_device_unlink(struct clk *clk)
> {
> return;
> }
>
> Do you want me to also declare these functions in the #if section
> (with the external keyword) to balance the above declarations?

Why can't we do the linking in __clk_get() and __clk_put()?