ASoC: fsi: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Wed, 18 Mar 2015 16:49:01 +0000 (17:49 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 22 Mar 2015 18:05:50 +0000 (18:05 +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/fsi.c

index b87b22e88e43decf2d8e66c84ce411f2c97224fa..eef7083ec7d9e0ebf33f17b9d2e2045e52c3768e 100644 (file)
@@ -1876,7 +1876,7 @@ static void fsi_handler_init(struct fsi_priv *fsi,
        }
 }
 
-static struct of_device_id fsi_of_match[];
+static const struct of_device_id fsi_of_match[];
 static int fsi_probe(struct platform_device *pdev)
 {
        struct fsi_master *master;
@@ -2092,7 +2092,7 @@ static struct fsi_core fsi2_core = {
        .b_mclk = B_MST_CTLR,
 };
 
-static struct of_device_id fsi_of_match[] = {
+static const struct of_device_id fsi_of_match[] = {
        { .compatible = "renesas,sh_fsi",       .data = &fsi1_core},
        { .compatible = "renesas,sh_fsi2",      .data = &fsi2_core},
        {},