diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-04-29 20:08:54 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-04-29 20:08:54 +0000 |
commit | 69c5a905ede8053fd2993ed2e4ff14e9970f2dce (patch) | |
tree | 0790c872f03deea3d70ad433d58289b123e55aa6 /src/devices/device.c | |
parent | fcdd571aee7592bd3f67283e70fba7608091ba04 (diff) | |
download | coreboot-69c5a905ede8053fd2993ed2e4ff14e9970f2dce.tar.xz |
changed dev->enable to dev->enabled. Sorry, I am the only one who can't speak
English in the project.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1543 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/device.c')
-rw-r--r-- | src/devices/device.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/device.c b/src/devices/device.c index d2b7e24f74..60e79c5a58 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -85,7 +85,7 @@ device_t alloc_dev(struct bus *parent, struct device_path *path) } /* If we don't have any other information about a device enable it */ - dev->enable = 1; + dev->enabled = 1; return dev; } @@ -135,7 +135,7 @@ static void read_resources(struct bus *bus) dev_path(curdev)); continue; } - if (!curdev->enable) { + if (!curdev->enabled) { continue; } @@ -431,10 +431,10 @@ void assign_resources(struct bus *bus) for (curdev = bus->children; curdev; curdev = curdev->sibling) { if (!curdev->ops || !curdev->ops->set_resources) { printk_err("%s missing set_resources\n", - dev_path(curdev)); + dev_path(curdev)); continue; } - if (!curdev->enable) { + if (!curdev->enabled) { continue; } curdev->ops->set_resources(curdev); @@ -461,7 +461,7 @@ void enable_resources(struct device *dev) printk_err("%s missing enable_resources\n", dev_path(dev)); return; } - if (!dev->enable) { + if (!dev->enabled) { return; } dev->ops->enable_resources(dev); @@ -471,7 +471,7 @@ void enable_resources(struct device *dev) * @brief Determine the existence of dynamic devices and construct dynamic * device tree. * - * Start for the root device 'dev_root', scan the buses in the system + * Start form the root device 'dev_root', scan the buses in the system * recursively, build the dynamic device tree according to the result * of the probe. * @@ -565,7 +565,7 @@ void dev_initialize(void) printk_info("Initializing devices...\n"); for (dev = all_devices; dev; dev = dev->next) { - if (dev->enable && dev->ops && dev->ops->init) { + if (dev->enabled && dev->ops && dev->ops->init) { printk_debug("%s init\n", dev_path(dev)); dev->ops->init(dev); } |