projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e091e7
)
gianfar: use of_property_read_bool()
author
Saurabh Sengar
<
[email protected]
>
Fri, 20 Nov 2015 17:53:58 +0000
(23:23 +0530)
committer
David S. Miller
<
[email protected]
>
Mon, 23 Nov 2015 01:47:14 +0000
(20:47 -0500)
use of_property_read_bool() for testing bool property
Signed-off-by: Saurabh Sengar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/freescale/gianfar.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/gianfar.c
b/drivers/net/ethernet/freescale/gianfar.c
index c8bc43e99a355bd8c298c1da9156e0813e32458c..67b1850c034e1f3859ff767494699d38f18681f5 100644
(file)
--- a/
drivers/net/ethernet/freescale/gianfar.c
+++ b/
drivers/net/ethernet/freescale/gianfar.c
@@
-738,7
+738,6
@@
static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev)
struct gfar_private *priv = NULL;
struct device_node *np = ofdev->dev.of_node;
struct device_node *child = NULL;
- struct property *stash;
u32 stash_len = 0;
u32 stash_idx = 0;
unsigned int num_tx_qs, num_rx_qs;
@@
-854,9
+853,7
@@
static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev)
goto err_grp_init;
}
- stash = of_find_property(np, "bd-stash", NULL);
-
- if (stash) {
+ if (of_property_read_bool(np, "bd-stash")) {
priv->device_flags |= FSL_GIANFAR_DEV_HAS_BD_STASHING;
priv->bd_stash_en = 1;
}