diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:25:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:25:47 -0500 |
commit | 2bf2154c6bb5599e3ec3f73c34861a0b12aa839e (patch) | |
tree | 62691bd915e2e3c2e6648306d3fb893f7a1dc57e /drivers/usb/gadget/omap_udc.c | |
parent | 08a4ecee986dd98e86090ff5faac4782b6765aed (diff) | |
parent | 71a8924bee63d891f6256d560e32416a458440b3 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (81 commits)
[PATCH] USB: omninet: fix up debugging comments
[PATCH] USB serial: add navman driver
[PATCH] USB: Fix irda-usb use after use
[PATCH] USB: rtl8150 small fix
[PATCH] USB: ftdi_sio: add Icom ID1 USB product and vendor ids
[PATCH] USB: cp2101: add new device IDs
[PATCH] USB: fix check_ctrlrecip to allow control transfers in state ADDRESS
[PATCH] USB: vicam.c: fix a NULL pointer dereference
[PATCH] USB: ZC0301 driver bugfix
[PATCH] USB: add support for Creativelabs Silvercrest USB keyboard
[PATCH] USB: storage: new unusual_devs.h entry: Mitsumi 7in1 Card Reader
[PATCH] USB: storage: unusual_devs.h entry 0420:0001
[PATCH] USB: storage: another unusual_devs.h entry
[PATCH] USB: storage: sandisk unusual_devices entry
[PATCH] USB: fix initdata issue in isp116x-hcd
[PATCH] USB: usbcore: usb_set_configuration oops (NULL ptr dereference)
[PATCH] USB: usbcore: Don't assume a USB configuration includes any interfaces
[PATCH] USB: ub 03 drop stall clearing
[PATCH] USB: ub 02 remove diag
[PATCH] USB: ub 01 remove first_open
...
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index a8972d7c97be..fbea51448909 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -273,9 +273,8 @@ omap_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) | |||
273 | { | 273 | { |
274 | struct omap_req *req; | 274 | struct omap_req *req; |
275 | 275 | ||
276 | req = kmalloc(sizeof *req, gfp_flags); | 276 | req = kzalloc(sizeof(*req), gfp_flags); |
277 | if (req) { | 277 | if (req) { |
278 | memset (req, 0, sizeof *req); | ||
279 | req->req.dma = DMA_ADDR_INVALID; | 278 | req->req.dma = DMA_ADDR_INVALID; |
280 | INIT_LIST_HEAD (&req->queue); | 279 | INIT_LIST_HEAD (&req->queue); |
281 | } | 280 | } |
@@ -2586,11 +2585,10 @@ omap_udc_setup(struct platform_device *odev, struct otg_transceiver *xceiv) | |||
2586 | /* UDC_PULLUP_EN gates the chip clock */ | 2585 | /* UDC_PULLUP_EN gates the chip clock */ |
2587 | // OTG_SYSCON_1_REG |= DEV_IDLE_EN; | 2586 | // OTG_SYSCON_1_REG |= DEV_IDLE_EN; |
2588 | 2587 | ||
2589 | udc = kmalloc (sizeof *udc, SLAB_KERNEL); | 2588 | udc = kzalloc(sizeof(*udc), SLAB_KERNEL); |
2590 | if (!udc) | 2589 | if (!udc) |
2591 | return -ENOMEM; | 2590 | return -ENOMEM; |
2592 | 2591 | ||
2593 | memset(udc, 0, sizeof *udc); | ||
2594 | spin_lock_init (&udc->lock); | 2592 | spin_lock_init (&udc->lock); |
2595 | 2593 | ||
2596 | udc->gadget.ops = &omap_gadget_ops; | 2594 | udc->gadget.ops = &omap_gadget_ops; |