Commit 6ffa84df authored by Fabian Frederick's avatar Fabian Frederick Committed by Mark Brown

ASoC: fsl: 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
...@@ -326,7 +326,7 @@ static int psc_ac97_of_remove(struct platform_device *op) ...@@ -326,7 +326,7 @@ static int psc_ac97_of_remove(struct platform_device *op)
} }
/* Match table for of_platform binding */ /* Match table for of_platform binding */
static struct of_device_id psc_ac97_match[] = { static const struct of_device_id psc_ac97_match[] = {
{ .compatible = "fsl,mpc5200-psc-ac97", }, { .compatible = "fsl,mpc5200-psc-ac97", },
{ .compatible = "fsl,mpc5200b-psc-ac97", }, { .compatible = "fsl,mpc5200b-psc-ac97", },
{} {}
......
...@@ -217,7 +217,7 @@ static int psc_i2s_of_remove(struct platform_device *op) ...@@ -217,7 +217,7 @@ static int psc_i2s_of_remove(struct platform_device *op)
} }
/* Match table for of_platform binding */ /* Match table for of_platform binding */
static struct of_device_id psc_i2s_match[] = { static const struct of_device_id psc_i2s_match[] = {
{ .compatible = "fsl,mpc5200-psc-i2s", }, { .compatible = "fsl,mpc5200-psc-i2s", },
{ .compatible = "fsl,mpc5200b-psc-i2s", }, { .compatible = "fsl,mpc5200b-psc-i2s", },
{} {}
......
...@@ -113,7 +113,7 @@ static int pcm030_fabric_remove(struct platform_device *op) ...@@ -113,7 +113,7 @@ static int pcm030_fabric_remove(struct platform_device *op)
return ret; return ret;
} }
static struct of_device_id pcm030_audio_match[] = { static const struct of_device_id pcm030_audio_match[] = {
{ .compatible = "phytec,pcm030-audio-fabric", }, { .compatible = "phytec,pcm030-audio-fabric", },
{} {}
}; };
......
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