]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net: stmmac: return error if no DMA configuration is found
authorNiklas Cassel <niklas.cassel@axis.com>
Wed, 7 Dec 2016 14:20:03 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 18:07:10 +0000 (13:07 -0500)
commit89ab75bf7253271c0ca805931105a298bc22bfdf
tree3c4fc3caa02e1ebfcc12df284fab152f5674176b
parent3f0dd6b79c014231e671f754a499aa017c2b955c
net: stmmac: return error if no DMA configuration is found

All drivers except pci glue layer calls stmmac_probe_config_dt.
stmmac_probe_config_dt does a kzalloc dma_cfg.

pci glue layer does kzalloc dma_cfg explicitly, so all current
drivers does a kzalloc dma_cfg.

Return an error if no DMA configuration is found, that way
we can assume that the DMA configuration always exists.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Acked-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c