[openwrt/openwrt] ramips: gdma: remove slave_id field

LEDE Commits lede-commits at lists.infradead.org
Wed May 29 01:42:03 PDT 2024


nick pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2240320d7f53d4ca3d7d1313466dcda67ebd3b30

commit 2240320d7f53d4ca3d7d1313466dcda67ebd3b30
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Mon May 27 12:41:48 2024 +0000

    ramips: gdma: remove slave_id field
    
    Fix compile error:
    drivers/dma/ralink-gdma.c: In function 'gdma_dma_config':
    drivers/dma/ralink-gdma.c:197:40: error: 'struct dma_slave_config' has no member named 'slave_id'
      197 |                 chan->slave_id = config->slave_id;
          |                                        ^~
    drivers/dma/ralink-gdma.c:206:40: error: 'struct dma_slave_config' has no member named 'slave_id'
      206 |                 chan->slave_id = config->slave_id;
          |                                        ^~
    make[8]: *** [scripts/Makefile.build:243: drivers/dma/ralink-gdma.o] Error 1
    
    ref: https://lore.kernel.org/all/20211122222203.4103644-1-arnd@kernel.org/
    
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
 target/linux/ramips/files/drivers/dma/ralink-gdma.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target/linux/ramips/files/drivers/dma/ralink-gdma.c b/target/linux/ramips/files/drivers/dma/ralink-gdma.c
index b5229bc6ea..e510a05ebb 100644
--- a/target/linux/ramips/files/drivers/dma/ralink-gdma.c
+++ b/target/linux/ramips/files/drivers/dma/ralink-gdma.c
@@ -194,7 +194,6 @@ static int gdma_dma_config(struct dma_chan *c,
 			dev_err(dma_dev->ddev.dev, "only support 4 byte buswidth\n");
 			return -EINVAL;
 		}
-		chan->slave_id = config->slave_id;
 		chan->fifo_addr = config->dst_addr;
 		chan->burst_size = gdma_dma_maxburst(config->dst_maxburst);
 		break;
@@ -203,7 +202,6 @@ static int gdma_dma_config(struct dma_chan *c,
 			dev_err(dma_dev->ddev.dev, "only support 4 byte buswidth\n");
 			return -EINVAL;
 		}
-		chan->slave_id = config->slave_id;
 		chan->fifo_addr = config->src_addr;
 		chan->burst_size = gdma_dma_maxburst(config->src_maxburst);
 		break;




More information about the lede-commits mailing list