]> 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)
commitfb8831982935e4b0a336d4ee68a5e0cce5f38b31
treec91e5fe688d60eb652d75191b1f1a8d4cbaa3c9c
parent1443b44a533b34550c7493ede762a7a5d6cd5ebc
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