diff options
author | David S. Miller <davem@davemloft.net> | 2014-11-29 23:47:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-29 23:47:48 -0500 |
commit | 60b7379dc5b1743427b031cca53e30860a38ada6 (patch) | |
tree | c0462b8dd188861bd04f36dd31672b7446e35dd8 /drivers/net/ethernet/stmicro | |
parent | a523a5ecc8c6ddceb8f783f600605553e5ad8963 (diff) | |
parent | 7a5a4f978750756755dc839014e13d1b088ccc8e (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 15814b79ff10..07054ce84ba8 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | |||
@@ -188,12 +188,6 @@ static int stmmac_probe_config_dt(struct platform_device *pdev, | |||
188 | */ | 188 | */ |
189 | plat->maxmtu = JUMBO_LEN; | 189 | plat->maxmtu = JUMBO_LEN; |
190 | 190 | ||
191 | /* Set default value for multicast hash bins */ | ||
192 | plat->multicast_filter_bins = HASH_TABLE_SIZE; | ||
193 | |||
194 | /* Set default value for unicast filter entries */ | ||
195 | plat->unicast_filter_entries = 1; | ||
196 | |||
197 | /* | 191 | /* |
198 | * Currently only the properties needed on SPEAr600 | 192 | * Currently only the properties needed on SPEAr600 |
199 | * are provided. All other properties should be added | 193 | * are provided. All other properties should be added |
@@ -281,6 +275,13 @@ static int stmmac_pltfr_probe(struct platform_device *pdev) | |||
281 | return PTR_ERR(addr); | 275 | return PTR_ERR(addr); |
282 | 276 | ||
283 | plat_dat = dev_get_platdata(&pdev->dev); | 277 | plat_dat = dev_get_platdata(&pdev->dev); |
278 | |||
279 | /* Set default value for multicast hash bins */ | ||
280 | plat_dat->multicast_filter_bins = HASH_TABLE_SIZE; | ||
281 | |||
282 | /* Set default value for unicast filter entries */ | ||
283 | plat_dat->unicast_filter_entries = 1; | ||
284 | |||
284 | if (pdev->dev.of_node) { | 285 | if (pdev->dev.of_node) { |
285 | if (!plat_dat) | 286 | if (!plat_dat) |
286 | plat_dat = devm_kzalloc(&pdev->dev, | 287 | plat_dat = devm_kzalloc(&pdev->dev, |