diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2014-12-10 08:13:01 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-12-11 16:28:22 -0500 |
commit | 6cf710d47633be388e831713738626d1911163c8 (patch) | |
tree | dd9418618b3434c9ffcbcccefe725cb8d7443b87 /drivers/i2c | |
parent | de20d1857dd6b1a289d3b0476d6af36d12000d7e (diff) |
i2c: sh_mobile: remove unneeded DMA mask
We don't need the mask since we obtain the channels via DT.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-sh_mobile.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index a758ccc29752..421e00418ef1 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c | |||
@@ -750,14 +750,11 @@ MODULE_DEVICE_TABLE(of, sh_mobile_i2c_dt_ids); | |||
750 | static int sh_mobile_i2c_request_dma_chan(struct device *dev, enum dma_transfer_direction dir, | 750 | static int sh_mobile_i2c_request_dma_chan(struct device *dev, enum dma_transfer_direction dir, |
751 | dma_addr_t port_addr, struct dma_chan **chan_ptr) | 751 | dma_addr_t port_addr, struct dma_chan **chan_ptr) |
752 | { | 752 | { |
753 | dma_cap_mask_t mask; | ||
754 | struct dma_chan *chan; | 753 | struct dma_chan *chan; |
755 | struct dma_slave_config cfg; | 754 | struct dma_slave_config cfg; |
756 | char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; | 755 | char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; |
757 | int ret; | 756 | int ret; |
758 | 757 | ||
759 | dma_cap_zero(mask); | ||
760 | dma_cap_set(DMA_SLAVE, mask); | ||
761 | *chan_ptr = NULL; | 758 | *chan_ptr = NULL; |
762 | 759 | ||
763 | chan = dma_request_slave_channel_reason(dev, chan_name); | 760 | chan = dma_request_slave_channel_reason(dev, chan_name); |