mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-22 20:15:41 +00:00
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>