diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-03-05 14:52:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-05 14:52:18 -0500 |
commit | 33ca8a53f262b4af40611bea331b8c87d133af72 (patch) | |
tree | d6468c820a556c4915bcb5b761204a0fb19e8225 /net/dsa/dsa.c | |
parent | db2dcb4f91d5fec5c346a82c309187ee821e2495 (diff) | |
parent | 13a7a6ac0a11197edcd0f756a035f472b42cdf8b (diff) |
Merge tag 'v4.0-rc2' into irq/core, to refresh the tree before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 37317149f918..2173402d87e0 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
@@ -603,7 +603,7 @@ static int dsa_of_probe(struct platform_device *pdev) | |||
603 | 603 | ||
604 | pdev->dev.platform_data = pd; | 604 | pdev->dev.platform_data = pd; |
605 | pd->netdev = ðernet_dev->dev; | 605 | pd->netdev = ðernet_dev->dev; |
606 | pd->nr_chips = of_get_child_count(np); | 606 | pd->nr_chips = of_get_available_child_count(np); |
607 | if (pd->nr_chips > DSA_MAX_SWITCHES) | 607 | if (pd->nr_chips > DSA_MAX_SWITCHES) |
608 | pd->nr_chips = DSA_MAX_SWITCHES; | 608 | pd->nr_chips = DSA_MAX_SWITCHES; |
609 | 609 | ||