diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2022-04-29 10:46:54 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-04-29 12:09:31 +0200 |
commit | 101da4268626b00d16356a6bf284d66e44c46ff9 (patch) | |
tree | f328e69c3c0d3ec2daa4e63e25e87c6172a51b79 /drivers/net/eql.c | |
parent | 47f070a63e735bcc8d481de31be1b5a1aa62b31c (diff) | |
download | linux-101da4268626b00d16356a6bf284d66e44c46ff9.tar.gz linux-101da4268626b00d16356a6bf284d66e44c46ff9.tar.bz2 linux-101da4268626b00d16356a6bf284d66e44c46ff9.zip |
can: grcan: use ofdev->dev when allocating DMA memory
Use the device of the device tree node should be rather than the
device of the struct net_device when allocating DMA buffers.
The driver got away with it on sparc32 until commit 53b7670e5735
("sparc: factor the dma coherent mapping into helper") after which the
driver oopses.
Fixes: 6cec9b07fe6a ("can: grcan: Add device driver for GRCAN and GRHCAN cores")
Link: https://lore.kernel.org/all/20220429084656.29788-2-andreas@gaisler.com
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/eql.c')
0 files changed, 0 insertions, 0 deletions