diff options
author | Wang Qing <wangqing@vivo.com> | 2022-04-06 11:17:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-06 16:18:03 +0200 |
commit | be8d9d05271c961dfe366793a3886f4bd6f39dca (patch) | |
tree | 4f24b0ee4812dfe5aed70e9f345306ef3e3b1c87 /drivers/net/ethernet/xilinx | |
parent | Merge branch 'mtk_eth_soc-flo-offload-plus-wireless' (diff) | |
download | linux-be8d9d05271c961dfe366793a3886f4bd6f39dca.tar.xz linux-be8d9d05271c961dfe366793a3886f4bd6f39dca.zip |
net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property
"little-endian" has no specific content, use more helper function
of_property_read_bool() instead of of_get_property()
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index 869e362e09c1..3f6b9dfca095 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c @@ -1515,7 +1515,7 @@ static int temac_probe(struct platform_device *pdev) of_node_put(dma_np); return PTR_ERR(lp->sdma_regs); } - if (of_get_property(dma_np, "little-endian", NULL)) { + if (of_property_read_bool(dma_np, "little-endian")) { lp->dma_in = temac_dma_in32_le; lp->dma_out = temac_dma_out32_le; } else { |