diff options
author | Saurabh Sengar <saurabh.truth@gmail.com> | 2015-11-20 20:53:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 04:47:14 +0300 |
commit | 3f8c0f7efb4fcac11f31afa97584d06118c614bb (patch) | |
tree | 094058990836fc4c720b9b83bdc02c20a359fa68 /drivers/net/ethernet/freescale/gianfar.c | |
parent | 5e091e7ad0baa84a401b4dc3f859890990f0854f (diff) | |
download | linux-3f8c0f7efb4fcac11f31afa97584d06118c614bb.tar.xz |
gianfar: use of_property_read_bool()
use of_property_read_bool() for testing bool property
Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.c')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index c8bc43e99a35..67b1850c034e 100644 --- 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; } |