Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 281abd96 authored by Markus Pargmann's avatar Markus Pargmann Committed by David S. Miller
Browse files

net/ethernet: cpsw: DT read bool dual_emac

parent f468b10e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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...