]> git.baikalelectronics.ru Git - kernel.git/commit
net: sh_eth: don't use NULL as "struct device" for the DMA mapping API
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 4 Dec 2017 13:33:27 +0000 (14:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 19:40:34 +0000 (14:40 -0500)
commit1863e1b837f0c9dcc9f19cada10cda485c5e1765
treec91e5fe688d60eb652d75191b1f1a8d4cbaa3c9c
parentd777306189f2013557181ce36d93f2001e3534af
net: sh_eth: don't use NULL as "struct device" for the DMA mapping API

Using NULL as argument for the DMA mapping API is bogus, as the DMA
mapping API may use information from the "struct device" to perform
the DMA mapping operation. Therefore, pass the appropriate "struct
device".

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>
drivers/net/ethernet/renesas/sh_eth.c