Author: stepan Date: Mon Mar 29 21:04:13 2010 New Revision: 5314 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5314
Log: cpu_driver structs need to be const, too... Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/src/cpu/amd/model_10xxx/model_10xxx_init.c trunk/src/cpu/intel/ep80579/ep80579_init.c
Modified: trunk/src/cpu/amd/model_10xxx/model_10xxx_init.c ============================================================================== --- trunk/src/cpu/amd/model_10xxx/model_10xxx_init.c Mon Mar 29 19:14:28 2010 (r5313) +++ trunk/src/cpu/amd/model_10xxx/model_10xxx_init.c Mon Mar 29 21:04:13 2010 (r5314) @@ -148,7 +148,7 @@ { X86_VENDOR_AMD, 0x100F80 }, /* HY-D0 */ { 0, 0 }, }; -static struct cpu_driver model_10xxx __cpu_driver = { +static const struct cpu_driver model_10xxx __cpu_driver = { .ops = &cpu_dev_ops, .id_table = cpu_table, };
Modified: trunk/src/cpu/intel/ep80579/ep80579_init.c ============================================================================== --- trunk/src/cpu/intel/ep80579/ep80579_init.c Mon Mar 29 19:14:28 2010 (r5313) +++ trunk/src/cpu/intel/ep80579/ep80579_init.c Mon Mar 29 21:04:13 2010 (r5314) @@ -60,7 +60,7 @@ { 0, 0 }, };
-static struct cpu_driver driver __cpu_driver = { +static const struct cpu_driver driver __cpu_driver = { .ops = &cpu_dev_ops, .id_table = cpu_table, };