On 10 Nov 15, Jeremy Kerr wrote: > /* If we're using the common struct clk, we define the base clk object here > */ > @@ -64,14 +66,25 @@ struct clk { > struct mutex mutex; > spinlock_t spinlock; > } lock; > +#ifdef CONFIG_CLK_DEBUG > + const char name[CLK_NAME_LEN]; > + struct list_head list; > +#endif /* CONFIG_CLK_DEBUG */ > }; So clocks have names only if DEBUG is enabled?
> +#ifdef CONFIG_CLK_DEBUG > +#define __INIT_CLK_DEBUG(n) .name = #n, > +#else > +#define __INIT_CLK_DEBUG(n) > +#endif > + _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev