diff options
Diffstat (limited to 'src/devices/chip.c')
-rw-r--r-- | src/devices/chip.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |