net/fec_mpc52xx: fix BUG on missing dma_ops
commit461cadbc62b098b49b55de10605d330c8b494889
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 31 Mar 2009 20:16:52 +0000 (31 20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 07:57:00 +0000 (2 00:57 -0700)
tree11c39ee9cc99d7d9acb28a7626f7ae926f4bed76
parentfa9a86ddc8ecd2830a5e773facc250f110300ae7
net/fec_mpc52xx: fix BUG on missing dma_ops

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>
drivers/net/fec_mpc52xx.c