]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mtd: rawnand: intel: Remove unused nand_pa member from ebu_nand_cs
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 2 Jul 2022 23:12:25 +0000 (01:12 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 20 Sep 2022 08:06:53 +0000 (10:06 +0200)
The nand_pa member from struct ebu_nand_cs is only written but never
read. Remove this unused and unneeded member.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220702231227.1579176-7-martin.blumenstingl@googlemail.com
drivers/mtd/nand/raw/intel-nand-controller.c

index 3df16d5ecae87317db1a648c0c7f2f8e0314ecf1..de4f853689880fba9f4041ebfb8fc5a98b42b1ce 100644 (file)
 
 struct ebu_nand_cs {
        void __iomem *chipaddr;
-       dma_addr_t nand_pa;
        u32 addr_sel;
 };
 
@@ -626,7 +625,6 @@ static int ebu_nand_probe(struct platform_device *pdev)
        ebu_host->cs[cs].chipaddr = devm_ioremap_resource(dev, res);
        if (IS_ERR(ebu_host->cs[cs].chipaddr))
                return PTR_ERR(ebu_host->cs[cs].chipaddr);
-       ebu_host->cs[cs].nand_pa = res->start;
 
        ebu_host->clk = devm_clk_get(dev, NULL);
        if (IS_ERR(ebu_host->clk))