diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2013-10-04 12:44:40 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-07 19:19:31 (GMT) |
commit | 281abd965fedfe7c31927d84e01a5bfa554b5502 (patch) | |
tree | ba6a92d7dd321181b960d1ce9bf66061a8b0b3da | |
parent | f468b10e3de6c5f90a14b9c82f1403a2651cef35 (diff) | |
download | linux-281abd965fedfe7c31927d84e01a5bfa554b5502.tar.xz |
net/ethernet: cpsw: DT read bool dual_emac
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 5df50a9..804846e 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -1771,8 +1771,8 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data, } data->mac_control = prop; - if (!of_property_read_u32(node, "dual_emac", &prop)) - data->dual_emac = prop; + if (of_property_read_bool(node, "dual_emac")) + data->dual_emac = 1; /* * Populate all the child nodes here... |