summaryrefslogtreecommitdiffstats
path: root/src/devices/device.c
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-05-10 16:05:16 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-05-10 16:05:16 +0000
commit9f0d0f9669a2421398700292dbb377eff125c4fe (patch)
tree06fbda9fba79c00cda2e4774f00cef981211ab33 /src/devices/device.c
parent75337f7500cbddc1bea2927573c8eadaa4455d7f (diff)
downloadcoreboot-staging-9f0d0f9669a2421398700292dbb377eff125c4fe.zip
coreboot-staging-9f0d0f9669a2421398700292dbb377eff125c4fe.tar.gz
rename walk_static_devices
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1552 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/device.c')
-rw-r--r--src/devices/device.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index 60e79c5..ec8bb8e 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -37,8 +37,8 @@ static struct device **last_dev_p = &dev_root.next;
/**
* @brief Allocate a new device structure.
*
- * Allocte a new device structure and attached it to the device tree as a child
- * of the parent bus.
+ * Allocte a new device structure and attached it to the device tree as a
+ * child of the parent bus.
*
* @param parent parent bus the newly created device attached to.
* @param path path to the device to be created.
@@ -76,7 +76,7 @@ device_t alloc_dev(struct bus *parent, struct device_path *path)
dev->link[link].link = link;
}
- /* Add the new device to the children of the bus. */
+ /* Add the new device as a children of the bus. */
dev->bus = parent;
if (child) {
child->sibling = dev;
@@ -452,8 +452,10 @@ void assign_resources(struct bus *bus)
*
* The parent's resources should be enabled first to avoid having enabling
* order problem. This is done by calling the parent's enable_resources()
- * method and let the method to call it's children's enable_resoruces() via
+ * method and let that method to call it's children's enable_resoruces() via
* enable_childrens_resources().
+ *
+ * Indirect mutual recursion:
*/
void enable_resources(struct device *dev)
{
OpenPOWER on IntegriCloud