ath79: ag71xx: pass correct device pointer to dma functions
authorChuanhong Guo <gch981213@gmail.com>
Thu, 13 Dec 2018 07:12:01 +0000 (15:12 +0800)
committerPetr Štetiar <ynezz@true.cz>
Sun, 24 Mar 2019 00:44:24 +0000 (01:44 +0100)
commit4eaa3626a82149420d34b535dc673a2b6861da55
tree814782004779f0a3f8955761ff75bf7a5527ceb7
parent8d3af284e0b0735abbb915b01e65c22f4a049feb
ath79: ag71xx: pass correct device pointer to dma functions

linux 4.19 doesn't accept a NULL device for these functions.
It also complains that the device struct in net_device doesn't have
a dma_mask set.
Pass the device struct from platform_device for these functions.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c