[MTD] Make some tables 'const' so they can live in .rodata

arjan: drivers/mtd/maps/sc520cdp.c:167: warning: par_table is never written to and should be declared 'const'
arjan: drivers/mtd/maps/pci.c:105: warning: mtd_pci_map is never written to and should be declared 'const'
arjan: mind fixing those up ?

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by David Woodhouse and committed by Thomas Gleixner 7ac571f8 3c773547

+4 -4
+2 -2
drivers/mtd/maps/pci.c
··· 7 7 * it under the terms of the GNU General Public License version 2 as 8 8 * published by the Free Software Foundation. 9 9 * 10 - * $Id: pci.c,v 1.13 2005/11/07 11:14:27 gleixner Exp $ 10 + * $Id: pci.c,v 1.14 2005/11/17 08:20:27 dwmw2 Exp $ 11 11 * 12 12 * Generic PCI memory map driver. We support the following boards: 13 13 * - Intel IQ80310 ATU. ··· 102 102 memcpy_toio(map->base + map->translate(map, to), from, len); 103 103 } 104 104 105 - static struct map_info mtd_pci_map = { 105 + static const struct map_info mtd_pci_map = { 106 106 .phys = NO_XIP, 107 107 .copy_from = mtd_pci_copyfrom, 108 108 .copy_to = mtd_pci_copyto,
+2 -2
drivers/mtd/maps/sc520cdp.c
··· 16 16 * along with this program; if not, write to the Free Software 17 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 18 18 * 19 - * $Id: sc520cdp.c,v 1.22 2005/11/07 11:14:28 gleixner Exp $ 19 + * $Id: sc520cdp.c,v 1.23 2005/11/17 08:20:27 dwmw2 Exp $ 20 20 * 21 21 * 22 22 * The SC520CDP is an evaluation board for the Elan SC520 processor available ··· 164 164 unsigned long default_address; 165 165 }; 166 166 167 - static struct sc520_par_table par_table[NUM_FLASH_BANKS] = 167 + static const struct sc520_par_table par_table[NUM_FLASH_BANKS] = 168 168 { 169 169 { /* Flash Bank #0: selected by ROMCS0 */ 170 170 SC520_PAR_ROMCS0,