diff options
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device.c | 2 | ||||
-rw-r--r-- | src/device/hypertransport.c | 2 | ||||
-rw-r--r-- | src/device/pciexp_device.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/device/device.c b/src/device/device.c index dcbaef1279..7836af1e99 100644 --- a/src/device/device.c +++ b/src/device/device.c @@ -123,7 +123,7 @@ static struct device *__alloc_dev(struct bus *parent, struct device_path *path) struct device *dev, *child; /* Find the last child of our parent. */ - for (child = parent->children; child && child->sibling; /* */ ) + for (child = parent->children; child && child->sibling; /* */) child = child->sibling; dev = malloc(sizeof(*dev)); diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c index 66ff9d2d81..4a4609d6e3 100644 --- a/src/device/hypertransport.c +++ b/src/device/hypertransport.c @@ -61,7 +61,7 @@ static struct device *ht_scan_get_devs(struct device **old_devices) /* Now add the device to the list of devices on the bus. */ /* Find the last child of our parent. */ - for (child = first->bus->children; child && child->sibling; ) + for (child = first->bus->children; child && child->sibling;) child = child->sibling; /* Place the chain on the list of children of their parent. */ diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index 8cd39e4554..44b5100742 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -275,7 +275,7 @@ static void pciexp_L1_substate_commit(struct device *root, struct device *dev, pci_update_config32(root, root_cap + 0x08, ~0xff00, (comm_mode_rst_time << 8)); - pci_update_config32(root, root_cap + 0x0c , 0xffffff04, + pci_update_config32(root, root_cap + 0x0c, 0xffffff04, (endp_power_on_value << 3) | (power_on_scale)); /* TODO: 0xa0, 2 are values that work on some chipsets but really @@ -291,7 +291,7 @@ static void pciexp_L1_substate_commit(struct device *root, struct device *dev, L1SubStateSupport); for (dev_t = dev; dev_t; dev_t = dev_t->sibling) { - pci_update_config32(dev_t, end_cap + 0x0c , 0xffffff04, + pci_update_config32(dev_t, end_cap + 0x0c, 0xffffff04, (endp_power_on_value << 3) | (power_on_scale)); pci_update_config32(dev_t, end_cap + 0x08, |