aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qualcomm
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2017-12-04 14:33:26 +0100
committerGravatar David S. Miller <davem@davemloft.net> 2017-12-05 14:40:34 -0500
commit22c1aed4093a605b120d6e566620364843a318ed (patch)
treead4da0706a645811b43cbaef960b1db052661607 /drivers/net/ethernet/qualcomm
parentMerge branch 'RED-qdisc-fixes' (diff)
downloadlinux-22c1aed4093a605b120d6e566620364843a318ed.tar.gz
linux-22c1aed4093a605b120d6e566620364843a318ed.tar.bz2
linux-22c1aed4093a605b120d6e566620364843a318ed.zip
net: sh_eth: use correct "struct device" when calling DMA mapping functions
There are two types of "struct device": the one representing the physical device on its physical bus (platform, SPI, PCI, etc.), and the one representing the logical device in its device class (net, etc.). The DMA mapping API expects to receive as argument a "struct device" representing the physical device, as the "struct device" contains information about the bus that the DMA API needs. However, the sh_eth driver mistakenly uses the "struct device" representing the logical device (embedded in "struct net_device") rather than the "struct device" representing the physical device on its bus. This commit fixes that by adjusting all calls to the DMA mapping API. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm')
0 files changed, 0 insertions, 0 deletions