[PATCH 2/2] usb ehci: Use zalloc to allocate ehci structure
Sascha Hauer
s.hauer at pengutronix.de
Wed May 23 10:13:48 EDT 2012
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/usb/host/ehci-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index ae2b41e..a2473a9 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -858,7 +858,7 @@ static int ehci_probe(struct device_d *dev)
uint32_t reg;
struct ehci_platform_data *pdata = dev->platform_data;
- ehci = xmalloc(sizeof(struct ehci_priv));
+ ehci = xzalloc(sizeof(struct ehci_priv));
host = &ehci->host;
dev->priv = ehci;
--
1.7.10
More information about the barebox
mailing list