diff options
author | Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com> | 2019-02-14 14:48:14 +0900 |
---|---|---|
committer | Ryo Kataoka <ryo.kataoka.wt@renesas.com> | 2019-03-22 20:50:22 +0900 |
commit | 4ce8872d7ebf8f5e45d14b35865628f98adb675f (patch) | |
tree | 647f0e938c9422864db1d13ab597276f62b1157f | |
parent | f65f4b02bb556dd721621a7e0457358aff4f02b1 (diff) | |
download | renesas-bsp-4ce8872d7ebf8f5e45d14b35865628f98adb675f.tar.gz |
Revert "i2c: dev: mark RDWR buffers as DMA_SAFE"
This reverts commit 7e15a55865897a5ea4c1bbb5f6338b0b75c9d898.
The reason is to maintain compatibility with the v4.14.35 kernel.
Signed-off-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
-rw-r--r-- | drivers/i2c/i2c-dev.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index bbc7aadb4c899..6f638bbc922db 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -280,8 +280,6 @@ static noinline int i2cdev_ioctl_rdwr(struct i2c_client *client, res = PTR_ERR(rdwr_pa[i].buf); break; } - /* memdup_user allocates with GFP_KERNEL, so DMA is ok */ - rdwr_pa[i].flags |= I2C_M_DMA_SAFE; /* * If the message length is received from the slave (similar |