]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b0654398dfb12560d3708ed27da2efde3dd8992
tree11c39ee9cc99d7d9acb28a7626f7ae926f4bed76
parent0148912a97ba2d8d3927a77224e880074106c9b5
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