i2c-cpm: Pass dev ptr to dma_*_coherent rather than NULL
authorMark Ware <mware@elphinstone.net>
Tue, 21 Apr 2009 12:49:02 +0000 (22:49 +1000)
committerBen Dooks <ben-linux@fluff.org>
Mon, 11 May 2009 23:36:04 +0000 (00:36 +0100)
commit36521c271e5f93b249329ee7f321d27825970e31
tree5117296787f05cfd817db197fe0c468c84f22b18
parent89bc5d4a915dc6675961f797de91748bda87efcc
i2c-cpm: Pass dev ptr to dma_*_coherent rather than NULL

Recent DMA changes result in a BUG() when NULL is passed to
dma_alloc_coherent in place of a device.

Signed-off-by: Mark Ware <mware@elphinstone.net>
[ben-linux@fluff.org: fix patch moves]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-cpm.c