mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
f468b10e3d
commit
281abd965f
1 changed files with 2 additions and 2 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue