projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
488d69e
)
i2c: rcar: use proper device with dma_mapping_error
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Wed, 24 Aug 2016 09:19:29 +0000
(11:19 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 25 Aug 2016 16:48:47 +0000
(18:48 +0200)
We must use the same device we used for mapping.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-rcar.c
b/drivers/i2c/busses/i2c-rcar.c
index
52407f3
..
9bd849d
100644
(file)
--- a/
drivers/i2c/busses/i2c-rcar.c
+++ b/
drivers/i2c/busses/i2c-rcar.c
@@
-378,7
+378,7
@@
static void rcar_i2c_dma(struct rcar_i2c_priv *priv)
}
dma_addr = dma_map_single(chan->device->dev, buf, len, dir);
- if (dma_mapping_error(dev, dma_addr)) {
+ if (dma_mapping_error(
chan->device->
dev, dma_addr)) {
dev_dbg(dev, "dma map failed, using PIO\n");
return;
}