summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers
diff options
context:
space:
mode:
authorAnton Kochkov <anton.kochkov@gmail.com>2012-09-20 10:24:01 +0200
committerAnton Kochkov <anton.kochkov@gmail.com>2012-09-21 23:46:23 +0200
commitf6c808090af3f4c93b8c0bca61308fd68111b045 (patch)
tree8f6acd67f2c24b58d4a1875bc5f0f221ffd1b084 /payloads/libpayload/drivers
parent5b209c07186ee2b20185f00836dd61ead8be3e73 (diff)
UHCI: use proper pointer size
We used sizeof(listp*) at a place where sizeof(listp) is more appropriate: While these are pointers, they're part of the UHCI design, and don't depend on ISA details. Change-Id: I4d3cb571c9a407103bc81fc171a8e73b68f7c7a1 Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1530 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r--payloads/libpayload/drivers/usb/uhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/uhci.c b/payloads/libpayload/drivers/usb/uhci.c
index 84b461a466..635a8f18bb 100644
--- a/payloads/libpayload/drivers/usb/uhci.c
+++ b/payloads/libpayload/drivers/usb/uhci.c
@@ -175,7 +175,7 @@ uhci_init (pcidev_t addr)
reg16 &= 0xdf80;
pci_write_config16 (controller->bus_address, 0xc0, reg16);
- UHCI_INST (controller)->framelistptr = memalign (0x1000, 1024 * sizeof (flistp_t *)); /* 4kb aligned to 4kb */
+ UHCI_INST (controller)->framelistptr = memalign (0x1000, 1024 * sizeof (flistp_t)); /* 4kb aligned to 4kb */
if (! UHCI_INST (controller)->framelistptr)
fatal("Not enough memory for USB frame list pointer.\n");