net: stmmac: add a parse for new property 'snps,clk-csr'
authorJianguo Zhang <jianguo.zhang@mediatek.com>
Thu, 29 Sep 2022 01:47:58 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 12:04:23 +0000 (13:04 +0100)
commit83936ea8d8ad22d094172e35cc36ec80d4ddfa96
treee6d16cbdbe642ca969046f3a85d416d0aa744b96
parent7871785ce92d689b2aaa430ebc488fffa94620b0
net: stmmac: add a parse for new property 'snps,clk-csr'

Parse new property 'snps,clk-csr' firstly because the new property
is documented in binding file, if failed, fall back to old property
'clk_csr' for legacy case

Signed-off-by: Jianguo Zhang <jianguo.zhang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c