mirror of https://gitee.com/openkylin/linux.git
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:
parent
65a85a8d4d
commit
36b7777590
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue