i2c: rcar: cleanup DMA for all kinds of failure
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 19 Oct 2018 19:15:26 +0000 (21:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 20 Oct 2018 13:25:59 +0000 (15:25 +0200)
commit31d86033a0749a0463ea654130b2de5c163154f1
tree7389ea1d3cfd365ee474d4b0d2921434ac3b81fa
parent72a7a4aa77a05876e83f587f4cbe1e00ddc5ede1
i2c: rcar: cleanup DMA for all kinds of failure

DMA needs to be cleaned up not only on timeout, but on all errors where
it has been setup before.

Fixes: 73e8b0528346 ("i2c: rcar: add DMA support")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c