Commit 09355402 authored by Fabian Frederick's avatar Fabian Frederick Committed by Mark Brown

spi: constify of_device_id array

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c517d838
...@@ -588,7 +588,7 @@ static int mpc512x_psc_spi_of_remove(struct platform_device *op) ...@@ -588,7 +588,7 @@ static int mpc512x_psc_spi_of_remove(struct platform_device *op)
return mpc512x_psc_spi_do_remove(&op->dev); return mpc512x_psc_spi_do_remove(&op->dev);
} }
static struct of_device_id mpc512x_psc_spi_of_match[] = { static const struct of_device_id mpc512x_psc_spi_of_match[] = {
{ .compatible = "fsl,mpc5121-psc-spi", }, { .compatible = "fsl,mpc5121-psc-spi", },
{}, {},
}; };
......
...@@ -238,7 +238,7 @@ static int octeon_spi_remove(struct platform_device *pdev) ...@@ -238,7 +238,7 @@ static int octeon_spi_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct of_device_id octeon_spi_match[] = { static const struct of_device_id octeon_spi_match[] = {
{ .compatible = "cavium,octeon-3010-spi", }, { .compatible = "cavium,octeon-3010-spi", },
{}, {},
}; };
......
...@@ -482,7 +482,7 @@ static const struct dev_pm_ops spi_st_pm = { ...@@ -482,7 +482,7 @@ static const struct dev_pm_ops spi_st_pm = {
SET_RUNTIME_PM_OPS(spi_st_runtime_suspend, spi_st_runtime_resume, NULL) SET_RUNTIME_PM_OPS(spi_st_runtime_suspend, spi_st_runtime_resume, NULL)
}; };
static struct of_device_id stm_spi_match[] = { static const struct of_device_id stm_spi_match[] = {
{ .compatible = "st,comms-ssc4-spi", }, { .compatible = "st,comms-ssc4-spi", },
{}, {},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment