diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-09 21:26:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-11 23:33:19 -0700 |
commit | 2d946e5bcdabc1deef72d01bc92a2801c71d6d8d (patch) | |
tree | 604421402a13b43b4f246c69c9982192c766f6ea /arch/mips/include/asm/mach-lantiq | |
parent | 4ecdf770914392eb654d24f00e301d3e6afd1cfc (diff) |
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>
Diffstat (limited to 'arch/mips/include/asm/mach-lantiq')
-rw-r--r-- | arch/mips/include/asm/mach-lantiq/xway/xway_dma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-lantiq/xway/xway_dma.h b/arch/mips/include/asm/mach-lantiq/xway/xway_dma.h index 4901833498f7..8441b2698e64 100644 --- a/arch/mips/include/asm/mach-lantiq/xway/xway_dma.h +++ b/arch/mips/include/asm/mach-lantiq/xway/xway_dma.h @@ -40,6 +40,7 @@ struct ltq_dma_channel { int desc; /* the current descriptor */ struct ltq_dma_desc *desc_base; /* the descriptor base */ int phys; /* physical addr */ + struct device *dev; }; enum { |