projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f90e5a3
)
net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property
author
Wang Qing
<wangqing@vivo.com>
Wed, 6 Apr 2022 09:17:26 +0000
(
02:17
-0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 6 Apr 2022 14:18:03 +0000
(15:18 +0100)
"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>
drivers/net/ethernet/xilinx/ll_temac_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/xilinx/ll_temac_main.c
b/drivers/net/ethernet/xilinx/ll_temac_main.c
index 869e362e09c14b05c976cad3104372fc2855c017..3f6b9dfca095cf93251df3d812ac0e30cdc9b365 100644
(file)
--- 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 {