mtd: spi-nor: cqspi: remove duplicate const

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jul 13 10:59:09 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=315e9c767d9a4668ad68cde1b57a14f916c90668
Commit:     315e9c767d9a4668ad68cde1b57a14f916c90668
Parent:     d8b494a32889eae6eebb71bb4de3e14025026fe5
Author:     Arnd Bergmann <arnd at arndb.de>
AuthorDate: Tue Jun 27 17:34:19 2017 +0200
Committer:  Cyrille Pitchen <cyrille.pitchen at wedev4u.fr>
CommitDate: Tue Jun 27 21:28:52 2017 +0200

    mtd: spi-nor: cqspi: remove duplicate const
    
    The variable was already marked 'const' before the previous
    patch, but the qualifier was in an unusual place, and now the
    extra 'const' causes a harmless warning:
    
    drivers/mtd/spi-nor/cadence-quadspi.c:1286:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
    
    This removes the other 'const' instead.
    
    Fixes: f993c123b461 ("mtd: spi-nor: cqspi: make of_device_ids const")
    Signed-off-by: Arnd Bergmann <arnd at arndb.de>
    Signed-off-by: Cyrille Pitchen <cyrille.pitchen at wedev4u.fr>
---
 drivers/mtd/spi-nor/cadence-quadspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c
index d315c32..53c7d8e 100644
--- a/drivers/mtd/spi-nor/cadence-quadspi.c
+++ b/drivers/mtd/spi-nor/cadence-quadspi.c
@@ -1283,7 +1283,7 @@ static const struct dev_pm_ops cqspi__dev_pm_ops = {
 #define CQSPI_DEV_PM_OPS	NULL
 #endif
 
-static const struct of_device_id const cqspi_dt_ids[] = {
+static const struct of_device_id cqspi_dt_ids[] = {
 	{.compatible = "cdns,qspi-nor",},
 	{ /* end of table */ }
 };



More information about the linux-mtd-cvs mailing list