net/fec_mpc52xx: fix BUG on missing dma_ops
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 31 Mar 2009 20:16:52 +0000 (20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 07:57:00 +0000 (00:57 -0700)
The driver triggers a BUG_ON() when allocating DMA buffers because the
arch/powerpc dma_ops aren't in the net_device's struct device.  This
patch fixes the problem by using the parent of_device which does have
the correct dma_ops set.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found