linux/drivers/net/ethernet/renesas
Thomas Petazzoni 22c1aed409 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>
2017-12-05 14:40:34 -05:00
..
Kconfig ptp_clock: Allow for it to be optional 2016-11-16 09:26:34 +01:00
Makefile
ravb_main.c ravb: Consolidate clock handling 2017-10-12 23:00:50 -07:00
ravb_ptp.c
ravb.h ravb: add wake-on-lan support via magic packet 2017-08-01 17:54:38 -07:00
sh_eth.c net: sh_eth: use correct "struct device" when calling DMA mapping functions 2017-12-05 14:40:34 -05:00
sh_eth.h sh_eth: add missing EESIPR bits 2017-01-30 22:05:43 -05:00