Thread (19 messages) flat view 19 messages, 6 authors, 2013-02-14

[PATCH 0/4] Improve CLKSRC_OF matching

From: Rob Herring <hidden>
Date: 2013-02-07 23:36:44
Also in: lkml

On 02/07/2013 04:44 PM, Arnd Bergmann wrote:
On Thursday 07 February 2013, Rob Herring wrote:
quoted
From: Rob Herring <redacted>

In the recently added support for OF based clocksource init, a device node
will be matched twice. We can fix this by passing the device node to the
init functions and removing the match functions within the init functions.

This is based on arm-soc for-next branch and commit "of: fix incorrect
return value of of_find_matching_node_and_match()" in my DT for-next
branch.
Acked-by: Arnd Bergmann <arnd@arndb.de>

Conceptually this is definitely the way to go, but I noticed that
you create build warnings for the bisection points after the
first patch. I would suggest actually merging the first three
patches into one and also changing the prototype for the tegra
function in that patch to avoid this.
How so? I don't see a warning as there is no type checking on the init
function since of_device_id.data is just a void *. It would be good to
have type checking here if you know a way, but I don't. I agree it is a
bit abusive and can change it as you suggest.

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