OSDN Git Service

staging: mt7621-eth: set correct dma mask.
authorNeilBrown <neil@brown.name>
Sun, 9 Dec 2018 05:20:32 +0000 (16:20 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Dec 2018 10:55:39 +0000 (11:55 +0100)
commit370e0a71012744383b4a3ea8882961b63e626d09
treebb4ab647c3f967504db6891d1d8b4b35be8c9de8
parent852b2876a8a82f2c618da40b881bb07c2d42eb5c
staging: mt7621-eth: set correct dma mask.

Since commit f8c55dc6e828 ("MIPS: use generic dma noncoherent ops for
simple noncoherent platforms") changed MIPS dma handling, the eth
driver fails because the dma mask is set on the wrong 'struct device'.

Move the setting to the correct struct device.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-eth/mtk_eth_soc.c