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

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 10 19:59:07 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6324fb93a2594fa7e748ec45751033eee1fd7fee
Commit:     6324fb93a2594fa7e748ec45751033eee1fd7fee
Parent:     e7cda017f66e869738b1aba7e0cfe5ead000f155
Author:     Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
AuthorDate: Tue Mar 21 11:03:57 2017 +0100
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Thu Mar 23 11:10:40 2017 +0100

    mtd: nand: fsmc: remove ->select_bank() from fsmc_nand_platform_data
    
    Since commit 4404d7d821c3 ("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: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
    Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/fsmc_nand.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 0dd3c55..2f05c4ca 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -141,7 +141,6 @@ enum access_mode {
  * @options: different options for the driver
  * @width: bus width
  * @bank: default bank
- * @select_bank: callback to select a certain bank, this is
  * platform-specific. If the controller only supports one bank
  * this may be set to NULL
  */
@@ -154,8 +153,6 @@ struct fsmc_nand_platform_data {
 
 	enum access_mode	mode;
 
-	void			(*select_bank)(uint32_t bank, uint32_t busw);
-
 	/* priv structures for dma accesses */
 	void			*read_dma_priv;
 	void			*write_dma_priv;
@@ -958,7 +955,6 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 		 AMBA_REV_BITS(pid), AMBA_CONFIG_BITS(pid));
 
 	host->bank = pdata->bank;
-	host->select_chip = pdata->select_bank;
 	host->partitions = pdata->partitions;
 	host->nr_partitions = pdata->nr_partitions;
 	host->dev = &pdev->dev;



More information about the linux-mtd-cvs mailing list