From: Arvind Yadav Date: Fri, 16 Jun 2017 09:35:17 +0000 (+0530) Subject: mtd: spi-nor: cqspi: make of_device_ids const X-Git-Tag: v4.13-rc1~41^2~2^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f993c123b461ff47c10edfee65465fe651d0521f;p=thirdparty%2Fkernel%2Flinux.git mtd: spi-nor: cqspi: make of_device_ids const of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Reviewed-by: Marek Vasut Signed-off-by: Cyrille Pitchen --- diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c index 40096d73536cf..d315c326e72f0 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 struct of_device_id const cqspi_dt_ids[] = { +static const struct of_device_id const cqspi_dt_ids[] = { {.compatible = "cdns,qspi-nor",}, { /* end of table */ } };