diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2013-10-04 14:44:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-07 15:19:31 -0400 |
commit | 281abd965fedfe7c31927d84e01a5bfa554b5502 (patch) | |
tree | ba6a92d7dd321181b960d1ce9bf66061a8b0b3da | |
parent | f468b10e3de6c5f90a14b9c82f1403a2651cef35 (diff) |
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 5df50a96a1da..804846eb5fc2 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... |