{
struct omap_req *req;
- req = kzalloc(sizeof(*req), gfp_flags);
+ req = kmalloc(sizeof *req, gfp_flags);
if (req) {
+ memset (req, 0, sizeof *req);
req->req.dma = DMA_ADDR_INVALID;
INIT_LIST_HEAD (&req->queue);
}
/* UDC_PULLUP_EN gates the chip clock */
// OTG_SYSCON_1_REG |= DEV_IDLE_EN;
- udc = kzalloc(sizeof(*udc), SLAB_KERNEL);
+ udc = kmalloc (sizeof *udc, SLAB_KERNEL);
if (!udc)
return -ENOMEM;
+ memset(udc, 0, sizeof *udc);
spin_lock_init (&udc->lock);
udc->gadget.ops = &omap_gadget_ops;