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

mtd: nand: fsmc: remove ->select_bank() from fsmc_nand_platform_data

Since commit 4404d7d8 ("mtd: nand: fsmc: remove stale non-DT probe
path"), only DT probing is used for the fsmc_nand driver. Due to this,
the ->select_bank() field of fsmc_nand_platform_data is never used, so
this commit gets rid of it.
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>
上级 e7cda017
...@@ -141,7 +141,6 @@ enum access_mode { ...@@ -141,7 +141,6 @@ enum access_mode {
* @options: different options for the driver * @options: different options for the driver
* @width: bus width * @width: bus width
* @bank: default bank * @bank: default bank
* @select_bank: callback to select a certain bank, this is
* platform-specific. If the controller only supports one bank * platform-specific. If the controller only supports one bank
* this may be set to NULL * this may be set to NULL
*/ */
...@@ -154,8 +153,6 @@ struct fsmc_nand_platform_data { ...@@ -154,8 +153,6 @@ struct fsmc_nand_platform_data {
enum access_mode mode; enum access_mode mode;
void (*select_bank)(uint32_t bank, uint32_t busw);
/* priv structures for dma accesses */ /* priv structures for dma accesses */
void *read_dma_priv; void *read_dma_priv;
void *write_dma_priv; void *write_dma_priv;
...@@ -958,7 +955,6 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) ...@@ -958,7 +955,6 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
AMBA_REV_BITS(pid), AMBA_CONFIG_BITS(pid)); AMBA_REV_BITS(pid), AMBA_CONFIG_BITS(pid));
host->bank = pdata->bank; host->bank = pdata->bank;
host->select_chip = pdata->select_bank;
host->partitions = pdata->partitions; host->partitions = pdata->partitions;
host->nr_partitions = pdata->nr_partitions; host->nr_partitions = pdata->nr_partitions;
host->dev = &pdev->dev; host->dev = &pdev->dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册