[PATCH 1/2] usb ehci: Add resource sizes
Sascha Hauer
s.hauer at pengutronix.de
Wed May 23 10:13:47 EDT 2012
add_usb_ehci_device registers resources with size 0. Fix this.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/base/resource.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/resource.c b/drivers/base/resource.c
index b31c7d7..347b2f0 100644
--- a/drivers/base/resource.c
+++ b/drivers/base/resource.c
@@ -113,8 +113,10 @@ struct device_d *add_usb_ehci_device(int id, resource_size_t hccr,
res = xzalloc(sizeof(struct resource) * 2);
res[0].start = hccr;
+ res[0].size = 0x40;
res[0].flags = IORESOURCE_MEM;
res[1].start = hcor;
+ res[1].size = 0xc0;
res[1].flags = IORESOURCE_MEM;
return add_generic_device_res("ehci", id, res, 2, pdata);
--
1.7.10
More information about the barebox
mailing list