From 7100d67ae8344f6a3e9454fcf1f87243b66b1041 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Wed, 23 Jul 2003 21:34:46 +0000 Subject: code was broken git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1017 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/chip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/devices') diff --git a/src/devices/chip.c b/src/devices/chip.c index e99d731043..0074f2bede 100644 --- a/src/devices/chip.c +++ b/src/devices/chip.c @@ -13,12 +13,12 @@ chip_configure(struct chip *root, enum chip_pass pass) struct chip *c; for (c = root; c; c = c->next) { - if (root->control && root->control->enable) - root->control->enable(root, pass); + if (c->control && c->control->enable) + c->control->enable(c, pass); } for (c = root; c; c = c->next) { - if (root->children) - chip_configure(root->children, pass); + if (c->children) + chip_configure(c->children, pass); } } -- cgit v1.2.3