via-ircc: Pass PCI device pointer to dma_{alloc, free}_coherent()
authorBen Hutchings <ben@decadent.org.uk>
Mon, 28 Mar 2011 17:12:52 +0000 (17:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 07:12:33 +0000 (00:12 -0700)
commitfd1d9188f2cb81fe63c789d9f5463dca402ade12
tree9f09b2f889c91b448ae9cfe9622450930f7b1edd
parentabc45592bce8267a8e651c12ce94a1f83eaac7a6
via-ircc: Pass PCI device pointer to dma_{alloc, free}_coherent()

via-ircc has been passing a NULL pointer to DMA allocation functions,
which is completely invalid and results in a BUG on PowerPC.  Now
that we always have the device pointer available, pass it in.

Reference: http://bugs.debian.org/619450
Reported-by: Andrew Buckeridge <andrewb@bgc.com.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Andrew Buckeridge <andrewb@bgc.com.au> [against 2.6.32]
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/via-ircc.c