MIPS: lantiq: dma: add dev pointer
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Sep 2018 19:26:23 +0000 (21:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 06:33:19 +0000 (23:33 -0700)
commit2d946e5bcdabc1deef72d01bc92a2801c71d6d8d
tree604421402a13b43b4f246c69c9982192c766f6ea
parent4ecdf770914392eb654d24f00e301d3e6afd1cfc
MIPS: lantiq: dma: add dev pointer

dma_zalloc_coherent() now crashes if no dev pointer is given.
Add a dev pointer to the ltq_dma_channel structure and fill it in the
driver using it.

This fixes a bug introduced in kernel 4.19.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/mips/include/asm/mach-lantiq/xway/xway_dma.h
arch/mips/lantiq/xway/dma.c
drivers/net/ethernet/lantiq_etop.c