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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:12:54 +0000 (13:12 +0000)
commit3586e3900776328a96a93fb4f6259a186b3e4939
treed0b87445944957bbc1b1c945054a0f93cd240aa0
parent87406e317ff9959626ad263f3a3f9d0e729f7e3c
i2c: cpm: Fix build break due to incompatible pointer types

commit 609d5a1b2b35bb62b4b3750396e55453160c2a17 upstream.

Since commit ea8daa7b9784 ("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: ea8daa7b9784
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/i2c/busses/i2c-cpm.c