From: Giuseppe Cavallaro Date: Fri, 6 Apr 2012 07:34:45 +0000 (-0400) Subject: stmmac: fix build when CONFIG_OF is enable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36b7777590be33567be50db7f82282c3237428ad;p=linux-beck.git stmmac: fix build when CONFIG_OF is enable Reported-by: Stephen Rothwell Signed-off-by: Giuseppe Cavallaro Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 116529a366b2..12bd221561e5 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/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; }