diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-10-09 20:13:43 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-10-09 20:13:43 +0000 |
commit | 3fe6b7002bf8da7ecd91c2ab4e8bfdec4e80e02f (patch) | |
tree | 7db10b2b2dadc88350d747b746d899e119afcdb5 /src/include | |
parent | 42584096c30440ecef1c50322f2f39ccbc9e5230 (diff) | |
download | coreboot-3fe6b7002bf8da7ecd91c2ab4e8bfdec4e80e02f.tar.xz |
Add const to get rid of some warnings when passing quoted strings.
Remove an unused extern declaration.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4756 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/device/device.h | 6 | ||||
-rw-r--r-- | src/include/pc80/mc146818rtc.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h index 06a9245145..5e0e19a2e5 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -90,7 +90,11 @@ struct device { void *chip_info; }; -extern struct device dev_root; /* root bus */ +/** + * This is the root of the device tree. The device tree is defined in the + * static.c file and is generated by the config tool at compile time. + */ +extern struct device dev_root; extern struct device *all_devices; /* list of all devices */ diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index d510bd2d22..1561e4e811 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -95,9 +95,9 @@ #if !defined(ASSEMBLY) void rtc_init(int invalid); #if CONFIG_USE_OPTION_TABLE == 1 -int get_option(void *dest, char *name); +int get_option(void *dest, const char *name); #else -static inline int get_option(void *dest, char *name) { return -2; } +static inline int get_option(void *dest, const char *name) { return -2; } #endif #endif |