diff mbox

i2c: sh_mobile: remove unneeded DMA mask

Message ID 1418217181-25647-1-git-send-email-wsa@the-dreams.de (mailing list archive)
State Not Applicable
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Wolfram Sang Dec. 10, 2014, 1:13 p.m. UTC
From: Wolfram Sang <wsa+renesas@sang-engineering.com>

We don't need the mask since we obtain the channels via DT.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/i2c/busses/i2c-sh_mobile.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Wolfram Sang Dec. 11, 2014, 9:29 p.m. UTC | #1
On Wed, Dec 10, 2014 at 02:13:01PM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> We don't need the mask since we obtain the channels via DT.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Applied to for-next, thanks!
diff mbox

Patch

diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c
index 429778280b6d..b9c8cf2aac2c 100644
--- a/drivers/i2c/busses/i2c-sh_mobile.c
+++ b/drivers/i2c/busses/i2c-sh_mobile.c
@@ -752,14 +752,11 @@  MODULE_DEVICE_TABLE(of, sh_mobile_i2c_dt_ids);
 static int sh_mobile_i2c_request_dma_chan(struct device *dev, enum dma_transfer_direction dir,
 					  dma_addr_t port_addr, struct dma_chan **chan_ptr)
 {
-	dma_cap_mask_t mask;
 	struct dma_chan *chan;
 	struct dma_slave_config cfg;
 	char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx";
 	int ret;
 
-	dma_cap_zero(mask);
-	dma_cap_set(DMA_SLAVE, mask);
 	*chan_ptr = NULL;
 
 	chan = dma_request_slave_channel_reason(dev, chan_name);