Thread (155 messages) flat view 155 messages, 19 authors, 2011-05-10
STALE5601d

[PATCH 01/10] Add a common struct clk

From: Jeremy Kerr <hidden>
Date: 2011-05-02 03:40:32

Hi Rob,
I think you will find many examples in the kernel where that is not done 
by drivers.
Drivers should be checking the return value of clk_get - if they don't,
it's a bug. This is the logical place to check, rather than before all
clock API calls.

For cases where there is no clock provided for the device (but is a
valid clock on some machines), the platform code should return a no-op
clock from the clk_get call. This 'noop clock' would be a good contender
for inclusion into the kernel-wide infrastructure, like clk_fixed.

Cheers,


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