提交 feb1e57e 编写于 作者: T Thomas Petazzoni 提交者: Boris Brezillon

mtd: nand: fmsc: kill {read, write}_dma_priv from fsmc_nand_platform_data

The read_dma_priv and write_dma_priv fields of fsmc_nand_platform_data
are never set, so this commit removes them.
Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 a04271a7
...@@ -152,10 +152,6 @@ struct fsmc_nand_platform_data { ...@@ -152,10 +152,6 @@ struct fsmc_nand_platform_data {
unsigned int bank; unsigned int bank;
enum access_mode mode; enum access_mode mode;
/* priv structures for dma accesses */
void *read_dma_priv;
void *write_dma_priv;
}; };
/** /**
...@@ -963,14 +959,12 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) ...@@ -963,14 +959,12 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
case USE_DMA_ACCESS: case USE_DMA_ACCESS:
dma_cap_zero(mask); dma_cap_zero(mask);
dma_cap_set(DMA_MEMCPY, mask); dma_cap_set(DMA_MEMCPY, mask);
host->read_dma_chan = dma_request_channel(mask, filter, host->read_dma_chan = dma_request_channel(mask, filter, NULL);
pdata->read_dma_priv);
if (!host->read_dma_chan) { if (!host->read_dma_chan) {
dev_err(&pdev->dev, "Unable to get read dma channel\n"); dev_err(&pdev->dev, "Unable to get read dma channel\n");
goto err_req_read_chnl; goto err_req_read_chnl;
} }
host->write_dma_chan = dma_request_channel(mask, filter, host->write_dma_chan = dma_request_channel(mask, filter, NULL);
pdata->write_dma_priv);
if (!host->write_dma_chan) { if (!host->write_dma_chan) {
dev_err(&pdev->dev, "Unable to get write dma channel\n"); dev_err(&pdev->dev, "Unable to get write dma channel\n");
goto err_req_write_chnl; goto err_req_write_chnl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册