Browse Source

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>
Giuseppe Cavallaro 13 years ago
parent
commit
36b7777590
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

+ 1 - 1
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

@@ -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;
 	}