diff options
Diffstat (limited to 'drivers/usb/host')
| -rw-r--r-- | drivers/usb/host/ehci-sched.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/sl811-hcd.c | 2 | 
3 files changed, 3 insertions, 3 deletions
| diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index b56f25864ed6..4c972b57c7c3 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c | |||
| @@ -638,7 +638,7 @@ iso_stream_alloc (unsigned mem_flags) | |||
| 638 | { | 638 | { | 
| 639 | struct ehci_iso_stream *stream; | 639 | struct ehci_iso_stream *stream; | 
| 640 | 640 | ||
| 641 | stream = kcalloc(1, sizeof *stream, mem_flags); | 641 | stream = kzalloc(sizeof *stream, mem_flags); | 
| 642 | if (likely (stream != NULL)) { | 642 | if (likely (stream != NULL)) { | 
| 643 | INIT_LIST_HEAD(&stream->td_list); | 643 | INIT_LIST_HEAD(&stream->td_list); | 
| 644 | INIT_LIST_HEAD(&stream->free_list); | 644 | INIT_LIST_HEAD(&stream->free_list); | 
| diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index 76cb496c5836..75128c371800 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
| @@ -717,7 +717,7 @@ static int isp116x_urb_enqueue(struct usb_hcd *hcd, | |||
| 717 | } | 717 | } | 
| 718 | /* avoid all allocations within spinlocks: request or endpoint */ | 718 | /* avoid all allocations within spinlocks: request or endpoint */ | 
| 719 | if (!hep->hcpriv) { | 719 | if (!hep->hcpriv) { | 
| 720 | ep = kcalloc(1, sizeof *ep, mem_flags); | 720 | ep = kzalloc(sizeof *ep, mem_flags); | 
| 721 | if (!ep) | 721 | if (!ep) | 
| 722 | return -ENOMEM; | 722 | return -ENOMEM; | 
| 723 | } | 723 | } | 
| diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 80eaf659c198..d2a1fd40dfcb 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
| @@ -835,7 +835,7 @@ static int sl811h_urb_enqueue( | |||
| 835 | 835 | ||
| 836 | /* avoid all allocations within spinlocks */ | 836 | /* avoid all allocations within spinlocks */ | 
| 837 | if (!hep->hcpriv) | 837 | if (!hep->hcpriv) | 
| 838 | ep = kcalloc(1, sizeof *ep, mem_flags); | 838 | ep = kzalloc(sizeof *ep, mem_flags); | 
| 839 | 839 | ||
| 840 | spin_lock_irqsave(&sl811->lock, flags); | 840 | spin_lock_irqsave(&sl811->lock, flags); | 
| 841 | 841 | ||
