net: stmmac: Restore DT backwards-compatibility
authorThierry Reding <treding@nvidia.com>
Tue, 21 Mar 2017 15:12:10 +0000 (16:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:15:15 +0000 (12:15 -0700)
commit33e85b8dd69e7f2fbf77f04bfc97ea7c76bccf9b
tree301526d3550677926b4c215b5e67f2e9e9651731
parentf39768744fd6cd45291c957bd4bf2f68f073ed73
net: stmmac: Restore DT backwards-compatibility

Recent changes to support multiple queues in the device tree bindings
resulted in the number of RX and TX queues to be initialized to zero for
device trees not adhering to the new bindings.

Restore backwards-compatibility with those device trees by falling back
to a single RX and TX queues each.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-By: Joao Pinto <jpinto@synopsys.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c