net: seeq: fix crash caused by not set dev.parent
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Mon, 13 May 2019 11:15:17 +0000 (13:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:34 +0000 (19:42 +0200)
commit015e330501d2597ef9d3f23326e9c2902f6cc09b
treed90696bdfae800f3ecee50e708773c627372eda8
parentaf91d7d20058b1c5397a3a919a169b19862d5efe
net: seeq: fix crash caused by not set dev.parent

[ Upstream commit 5afcd14cfc7fed1bcc8abcee2cef82732772bfc2 ]

The old MIPS implementation of dma_cache_sync() didn't use the dev argument,
but commit c9eb6172c328 ("dma-mapping: turn dma_cache_sync into a
dma_map_ops method") changed that, so we now need to set dev.parent.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/seeq/sgiseeq.c