]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc289e9da164ec53541622fd21155dcc9656dada4
tree5117296787f05cfd817db197fe0c468c84f22b18
parent06e4887f9b767b349392cefb393bc7d9cf258e10
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