mv643xx_eth: fix PPC DMA breakage
authorGabriel Paubert <paubert@iram.es>
Mon, 18 May 2009 04:16:47 +0000 (21:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 04:16:47 +0000 (21:16 -0700)
commiteb0519b5a1cf07d5a1b919cffa0304cdaaa97a7e
tree3498722b099e4a631f89d0668158581cc701d589
parent4cd6fe1c6483cde93e2ec91f58b7af9c9eea51ad
mv643xx_eth: fix PPC DMA breakage

After 2.6.29, PPC no more admits passing NULL to the dev parameter of
the DMA API. The result is a BUG followed by solid lock-up when the
mv643xx_eth driver brings an interface up. The following patch makes
the driver work on my Pegasos again; it is mostly a search and replace
of NULL by mp->dev->dev.parent in dma allocation/freeing/mapping/unmapping
functions.

Signed-off-by: Gabriel Paubert <paubert@iram.es>
Acked-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c