git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
usb
/
gadget
/
lh7a40x_udc.c
diff --git
a/drivers/usb/gadget/lh7a40x_udc.c
b/drivers/usb/gadget/lh7a40x_udc.c
index
36db725
..
1a362c5
100644
(file)
--- a/
drivers/usb/gadget/lh7a40x_udc.c
+++ b/
drivers/usb/gadget/lh7a40x_udc.c
@@
-1114,10
+1114,11
@@
static struct usb_request *lh7a40x_alloc_request(struct usb_ep *ep,
DEBUG("%s, %p\n", __FUNCTION__, ep);
DEBUG("%s, %p\n", __FUNCTION__, ep);
- req = k
zalloc(sizeof(*req)
, gfp_flags);
+ req = k
malloc(sizeof *req
, gfp_flags);
if (!req)
return 0;
if (!req)
return 0;
+ memset(req, 0, sizeof *req);
INIT_LIST_HEAD(&req->queue);
return &req->req;
INIT_LIST_HEAD(&req->queue);
return &req->req;
@@
-2107,7
+2108,7
@@
static int lh7a40x_udc_probe(struct platform_device *pdev)
/* irq setup after old hardware state is cleaned up */
retval =
/* irq setup after old hardware state is cleaned up */
retval =
- request_irq(IRQ_USBINTR, lh7a40x_udc_irq,
IRQF_DISABLED
, driver_name,
+ request_irq(IRQ_USBINTR, lh7a40x_udc_irq,
SA_INTERRUPT
, driver_name,
dev);
if (retval != 0) {
DEBUG(KERN_ERR "%s: can't get irq %i, err %d\n", driver_name,
dev);
if (retval != 0) {
DEBUG(KERN_ERR "%s: can't get irq %i, err %d\n", driver_name,
@@
-2143,7
+2144,7
@@
static int lh7a40x_udc_remove(struct platform_device *pdev)
static struct platform_driver udc_driver = {
.probe = lh7a40x_udc_probe,
static struct platform_driver udc_driver = {
.probe = lh7a40x_udc_probe,
- .remove = lh7a40x_udc_remove
,
+ .remove = lh7a40x_udc_remove
/* FIXME power management support */
/* .suspend = ... disable UDC */
/* .resume = ... re-enable UDC */
/* FIXME power management support */
/* .suspend = ... disable UDC */
/* .resume = ... re-enable UDC */