On Mon, May 12, 2014 at 7:29 PM, Rob Herring <robherring2@xxxxxxxxx> wrote:
From: Rob Herring <robh@xxxxxxxxxx>
Use for_each_matching_node_and_match instead of for_each_matching_node plus
of_match_node to avoid searching the DT twice for each node.
The sunxi DT scanning code should really be re-worked rather than have
its own private matching infrastructure. It is working around needing a
function pointer and a data pointer for each compatible match.
Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
Cc: "Emilio LÃpez" <emilio@xxxxxxxxxxxxx>
Cc: Mike Turquette <mturquette@xxxxxxxxxx>
Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx>