瀏覽代碼

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>
Fabian Frederick 10 年之前
父節點
當前提交
2530fd7325
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/mmc/host/mmc_spi.c
  2. 1 1
      drivers/mmc/host/wmt-sdmmc.c

+ 1 - 1
drivers/mmc/host/mmc_spi.c

@@ -1507,7 +1507,7 @@ static int mmc_spi_remove(struct spi_device *spi)
 	return 0;
 }
 
-static struct of_device_id mmc_spi_of_match_table[] = {
+static const struct of_device_id mmc_spi_of_match_table[] = {
 	{ .compatible = "mmc-spi-slot", },
 	{},
 };

+ 1 - 1
drivers/mmc/host/wmt-sdmmc.c

@@ -744,7 +744,7 @@ static struct wmt_mci_caps wm8505_caps = {
 	.max_blk_size = 2048,
 };
 
-static struct of_device_id wmt_mci_dt_ids[] = {
+static const struct of_device_id wmt_mci_dt_ids[] = {
 	{ .compatible = "wm,wm8505-sdhc", .data = &wm8505_caps },
 	{ /* Sentinel */ },
 };