code was broken
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1017 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
39264e2b3b
commit
7100d67ae8
|
@ -13,12 +13,12 @@ chip_configure(struct chip *root, enum chip_pass pass)
|
||||||
struct chip *c;
|
struct chip *c;
|
||||||
|
|
||||||
for (c = root; c; c = c->next) {
|
for (c = root; c; c = c->next) {
|
||||||
if (root->control && root->control->enable)
|
if (c->control && c->control->enable)
|
||||||
root->control->enable(root, pass);
|
c->control->enable(c, pass);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (c = root; c; c = c->next) {
|
for (c = root; c; c = c->next) {
|
||||||
if (root->children)
|
if (c->children)
|
||||||
chip_configure(root->children, pass);
|
chip_configure(c->children, pass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue