From e21bb4024448d02f29e3a8a44c47d866b4f6377a Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 4 Apr 2008 03:46:39 +0000 Subject: [PATCH] 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 Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/coreboot-v3@651 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- device/root_device.c | 2 +- include/device/device.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/device/root_device.c b/device/root_device.c index 4086e37201..98967323ce 100644 --- a/device/root_device.c +++ b/device/root_device.c @@ -216,7 +216,7 @@ void root_dev_reset(struct bus *bus) * 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, diff --git a/include/device/device.h b/include/device/device.h index d556401a10..367a205d4c 100644 --- a/include/device/device.h +++ b/include/device/device.h @@ -283,7 +283,7 @@ void default_device_constructor(struct device *dev, struct device_operations *co 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);