[coreboot] r651 - in coreboot-v3: device include/device

svn at coreboot.org svn at coreboot.org
Fri Apr 4 05:46:40 CEST 2008


Author: stepan
Date: 2008-04-04 05:46:39 +0200 (Fri, 04 Apr 2008)
New Revision: 651

Modified:
   coreboot-v3/device/root_device.c
   coreboot-v3/include/device/device.h
Log:
remove const from default root ops. device ops can not be const because they're
changed during run time. (trivial patch)

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: coreboot-v3/device/root_device.c
===================================================================
--- coreboot-v3/device/root_device.c	2008-04-04 03:33:08 UTC (rev 650)
+++ coreboot-v3/device/root_device.c	2008-04-04 03:46:39 UTC (rev 651)
@@ -216,7 +216,7 @@
  * own ops in (e.g.) the mainboard, and initialize it in the dts in the
  * mainboard directory. 
  */
-const struct device_operations default_dev_ops_root = {
+struct device_operations default_dev_ops_root = {
 	.phase4_read_resources   = root_dev_read_resources,
 	.phase4_set_resources    = root_dev_set_resources,
 	.phase5_enable_resources = root_dev_enable_resources,

Modified: coreboot-v3/include/device/device.h
===================================================================
--- coreboot-v3/include/device/device.h	2008-04-04 03:33:08 UTC (rev 650)
+++ coreboot-v3/include/device/device.h	2008-04-04 03:46:39 UTC (rev 651)
@@ -283,7 +283,7 @@
 resource_t align_up(resource_t val, unsigned long gran);
 resource_t align_down(resource_t val, unsigned long gran);
 
-extern const struct device_operations default_dev_ops_root;
+extern struct device_operations default_dev_ops_root;
 
 extern int id_eq(struct device_id *id1, struct device_id *id2);
 void root_dev_read_resources(struct device * dev);





More information about the coreboot mailing list