ramips: gdma: remove slave_id field
authorShiji Yang <yangshiji66@qq.com>
Mon, 27 May 2024 12:41:48 +0000 (12:41 +0000)
committerNick Hainke <vincent@systemli.org>
Wed, 29 May 2024 08:41:49 +0000 (10:41 +0200)
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@qq.com>
target/linux/ramips/files/drivers/dma/ralink-gdma.c

index b5229bc6eae5bc29518c6747e5a88e896b2b03cc..e510a05ebbe319c820739b5bd0911a9202afc656 100644 (file)
@@ -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;