Thread (48 messages) read the whole thread 48 messages, 7 authors, 2017-01-02

[PATCH 1/3] CLK: uninline clk_prepare() and clk_unprepare()

From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2012-11-23 07:27:56
Also in: lkml

On 23 November 2012 12:49, Dmitry Torokhov [off-list ref] wrote:
Ahh, I see. Then I think my first patch was correct albeit it had bad changelog
message. If provided stubs for clk_prepare()/clk_unprepare() for
platforms that did not define HAVE_CLK and pushed the check for
HAVE_CLK_PREPARE down into drivers/clk/clk.c so __clk_prepare() would
either call platform implementation or just be an empty function.

Am I correct or I am still missing something?
I believe you are still missing it :)

clk.c will only be compiled when we have COMMON_CLK and
COMMON_CLK selects HAVE_CLK_PREPARE.

So, using HAVE_CLK_PREPARE in clk.c is useless, as its always true.
I feel, the best solution would be to simply drop patch 1 and apply others.

--
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help