stmmac: fix build when CONFIG_OF is enable
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Fri, 6 Apr 2012 07:34:45 +0000 (03:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Apr 2012 07:34:45 +0000 (03:34 -0400)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 116529a366b28d319983dbee62d930554580901a..12bd221561e575203bb9d2457f9e0e98e26961b9 100644 (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;
        }