mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
f90e5a3d5b
commit
be8d9d0527
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue