Re: [PATCH 2/2] net: sh_eth: don't use NULL as "struct device" for the DMA mapping API

2017-12-05 Thread Geert Uytterhoeven
On Mon, Dec 4, 2017 at 2:33 PM, Thomas Petazzoni wrote: > 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

Re: [PATCH 2/2] net: sh_eth: don't use NULL as "struct device" for the DMA mapping API

2017-12-04 Thread Sergei Shtylyov
On 12/04/2017 04:33 PM, Thomas Petazzoni wrote: 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

[PATCH 2/2] net: sh_eth: don't use NULL as "struct device" for the DMA mapping API

2017-12-04 Thread Thomas Petazzoni
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 ---