]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mtd: spi-nor: cqspi: remove duplicate const
authorArnd Bergmann <arnd@arndb.de>
Tue, 27 Jun 2017 15:34:19 +0000 (17:34 +0200)
committerCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Tue, 27 Jun 2017 19:28:52 +0000 (21:28 +0200)
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@arndb.de>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
drivers/mtd/spi-nor/cadence-quadspi.c

index d315c326e72f06d7dd4bd57976f9e389716b8fec..53c7d8e0327aa4376bdbb3cb00d78babf70349a4 100644 (file)
@@ -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 */ }
 };