• Rob Herring's avatar
    clk: sunxi: avoid double DT matching · cb7d5f42
    Rob Herring authored
    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: default avatarRob Herring <robh@kernel.org>
    Cc: "Emilio López" <emilio@elopez.com.ar>
    Acked-by: default avatarMike Turquette <mturquette@linaro.org>
    Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
    cb7d5f42
clk-sunxi.c 32.7 KB