]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: cpm: Fix build break due to incompatible pointer types
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Apr 2016 03:59:14 +0000 (13:59 +1000)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 22 Apr 2016 13:25:53 +0000 (15:25 +0200)
commitd59a5ca30793ac6c3ce7e42db0198b8d0de1a8e2
tree3579cd0e2914a1636b6b62d288c468d3be69c809
parent3e9429f629700fb0923472bae26e5417977726f9
i2c: cpm: Fix build break due to incompatible pointer types

Since commit 3d58917c5e74 ("kbuild: Add option to turn incompatible
pointer check into error"), assignments from an incompatible pointer
types have become a hard error, eg:

  drivers/i2c/busses/i2c-cpm.c:545:91: error: passing argument 3 of
  'dma_alloc_coherent' from incompatible pointer type

Fix the build break by converting txdma & rxdma to dma_addr_t.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Fixes: 3d58917c5e74
drivers/i2c/busses/i2c-cpm.c