stmmac: fix build when CONFIG_OF is enable

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Giuseppe Cavallaro 2012-04-06 03:34:45 -04:00 committed by David S. Miller
parent 65a85a8d4d
commit 36b7777590
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ static int __devinit stmmac_probe_config_dt(struct platform_device *pdev,
* once needed on other platforms.
*/
if (of_device_is_compatible(np, "st,spear600-gmac")) {
plat->pbl = 8;
plat->dma_cfg->pbl = 8;
plat->has_gmac = 1;
plat->pmt = 1;
}