ASoC: rsnd: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Wed, 18 Mar 2015 16:49:02 +0000 (17:49 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 22 Mar 2015 18:06:35 +0000 (18:06 +0000)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c

index 7b995f025e2276caf5fe43b3c2ff9a6e906f69b0..7be1602f57f3b8f67048a36fb4e1e0071d714423 100644 (file)
@@ -107,7 +107,7 @@ static struct rsnd_of_data rsnd_of_data_gen2 = {
        .flags = RSND_GEN2,
 };
 
-static struct of_device_id rsnd_of_match[] = {
+static const struct of_device_id rsnd_of_match[] = {
        { .compatible = "renesas,rcar_sound-gen1", .data = &rsnd_of_data_gen1 },
        { .compatible = "renesas,rcar_sound-gen2", .data = &rsnd_of_data_gen2 },
        {},