]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit573500dbf0f2756947517c1d4f942767dbf16dcc
treec91e5fe688d60eb652d75191b1f1a8d4cbaa3c9c
parent22c1aed4093a605b120d6e566620364843a318ed
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