Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC: 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>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: Robert Richter <rric@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Johannes Thumshirn <johannes.thumshirn@men.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Cc: linux-edac@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1426535685-25996-10-git-send-email-fabf@skynet.be
Signed-off-by: Borislav Petkov <bp@suse.de>

authored by

Fabian Frederick and committed by
Borislav Petkov
1afaa055 18b44b2b

+5 -5
+1 -1
drivers/edac/highbank_mc_edac.c
··· 146 146 .int_offset = MW_DDR_ECC_INT_BASE, 147 147 }; 148 148 149 - static struct of_device_id hb_ddr_ctrl_of_match[] = { 149 + static const struct of_device_id hb_ddr_ctrl_of_match[] = { 150 150 { .compatible = "calxeda,hb-ddr-ctrl", .data = &hb_settings }, 151 151 { .compatible = "calxeda,ecx-2000-ddr-ctrl", .data = &mw_settings }, 152 152 {},
+2 -2
drivers/edac/mpc85xx_edac.c
··· 670 670 return 0; 671 671 } 672 672 673 - static struct of_device_id mpc85xx_l2_err_of_match[] = { 673 + static const struct of_device_id mpc85xx_l2_err_of_match[] = { 674 674 /* deprecate the fsl,85.. forms in the future, 2.6.30? */ 675 675 { .compatible = "fsl,8540-l2-cache-controller", }, 676 676 { .compatible = "fsl,8541-l2-cache-controller", }, ··· 1160 1160 return 0; 1161 1161 } 1162 1162 1163 - static struct of_device_id mpc85xx_mc_err_of_match[] = { 1163 + static const struct of_device_id mpc85xx_mc_err_of_match[] = { 1164 1164 /* deprecate the fsl,85.. forms in the future, 2.6.30? */ 1165 1165 { .compatible = "fsl,8540-memory-controller", }, 1166 1166 { .compatible = "fsl,8541-memory-controller", },
+1 -1
drivers/edac/ppc4xx_edac.c
··· 193 193 * Device tree node type and compatible tuples this driver can match 194 194 * on. 195 195 */ 196 - static struct of_device_id ppc4xx_edac_match[] = { 196 + static const struct of_device_id ppc4xx_edac_match[] = { 197 197 { 198 198 .compatible = "ibm,sdram-4xx-ddr2" 199 199 },
+1 -1
drivers/edac/synopsys_edac.c
··· 512 512 return 0; 513 513 } 514 514 515 - static struct of_device_id synps_edac_match[] = { 515 + static const struct of_device_id synps_edac_match[] = { 516 516 { .compatible = "xlnx,zynq-ddrc-a05", }, 517 517 { /* end of table */ } 518 518 };