mirror of https://gitee.com/openkylin/linux.git
spi: cadence: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Harini Katakam <harinik@xilinx.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
b8fa0abd47
commit
f7f994a4c5
|
@ -647,7 +647,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev)
|
||||||
static SIMPLE_DEV_PM_OPS(cdns_spi_dev_pm_ops, cdns_spi_suspend,
|
static SIMPLE_DEV_PM_OPS(cdns_spi_dev_pm_ops, cdns_spi_suspend,
|
||||||
cdns_spi_resume);
|
cdns_spi_resume);
|
||||||
|
|
||||||
static struct of_device_id cdns_spi_of_match[] = {
|
static const struct of_device_id cdns_spi_of_match[] = {
|
||||||
{ .compatible = "xlnx,zynq-spi-r1p6" },
|
{ .compatible = "xlnx,zynq-spi-r1p6" },
|
||||||
{ .compatible = "cdns,spi-r1p6" },
|
{ .compatible = "cdns,spi-r1p6" },
|
||||||
{ /* end of table */ }
|
{ /* end of table */ }
|
||||||
|
|
Loading…
Reference in New Issue