aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 15:59:07 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-23 09:13:49 -0400
commit2530fd73252890320e6dac87bc3b854da27d594a (patch)
treebc45808fb1b2314a9be3319361869a714f1ad178 /drivers/mmc/host
parent303dbedc3152b0a3828ea881b446c2e2a247662f (diff)
mmc: 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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/mmc_spi.c2
-rw-r--r--drivers/mmc/host/wmt-sdmmc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
index e4a07546f8b6..ae19d83bb9de 100644
--- a/drivers/mmc/host/mmc_spi.c
+++ b/drivers/mmc/host/mmc_spi.c
@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi)
1507 return 0; 1507 return 0;
1508} 1508}
1509 1509
1510static struct of_device_id mmc_spi_of_match_table[] = { 1510static const struct of_device_id mmc_spi_of_match_table[] = {
1511 { .compatible = "mmc-spi-slot", }, 1511 { .compatible = "mmc-spi-slot", },
1512 {}, 1512 {},
1513}; 1513};
diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c
index dd2e1aa95ba3..5af00559e9d6 100644
--- a/drivers/mmc/host/wmt-sdmmc.c
+++ b/drivers/mmc/host/wmt-sdmmc.c
@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = {
744 .max_blk_size = 2048, 744 .max_blk_size = 2048,
745}; 745};
746 746
747static struct of_device_id wmt_mci_dt_ids[] = { 747static const struct of_device_id wmt_mci_dt_ids[] = {
748 { .compatible = "wm,wm8505-sdhc", .data = &wm8505_caps }, 748 { .compatible = "wm,wm8505-sdhc", .data = &wm8505_caps },
749 { /* Sentinel */ }, 749 { /* Sentinel */ },
750}; 750};