projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f468b10
)
net/ethernet: cpsw: DT read bool dual_emac
author
Markus Pargmann
<mpa@pengutronix.de>
Fri, 4 Oct 2013 12:44:40 +0000
(14:44 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 7 Oct 2013 19:19:31 +0000
(15:19 -0400)
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>
drivers/net/ethernet/ti/cpsw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/cpsw.c
b/drivers/net/ethernet/ti/cpsw.c
index
5df50a9
..
804846e
100644
(file)
--- 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...