Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174911
b: refs/heads/master
c: d697cdd
h: refs/heads/master
i:
  174909: 774142c
  174907: 9770f43
  174903: 2f951f8
  174895: 82b3d52
  174879: c56519a
  174847: e0e0ec0
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 49e38ca commit e244c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dccd574cccad950d9ed9bc192eae4089c6044d9d
refs/heads/master: d697cdda43939a80432863e2e26df6701ce72b63
9 changes: 2 additions & 7 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ struct usb_hub {

/* buffer for urb ... with extra space in case of babble */
char (*buffer)[8];
dma_addr_t buffer_dma; /* DMA address for buffer */
union {
struct usb_hub_status hub;
struct usb_port_status port;
Expand Down Expand Up @@ -869,8 +868,7 @@ static int hub_configure(struct usb_hub *hub,
int maxp, ret;
char *message = "out of memory";

hub->buffer = usb_buffer_alloc(hdev, sizeof(*hub->buffer), GFP_KERNEL,
&hub->buffer_dma);
hub->buffer = kmalloc(sizeof(*hub->buffer), GFP_KERNEL);
if (!hub->buffer) {
ret = -ENOMEM;
goto fail;
Expand Down Expand Up @@ -1111,8 +1109,6 @@ static int hub_configure(struct usb_hub *hub,

usb_fill_int_urb(hub->urb, hdev, pipe, *hub->buffer, maxp, hub_irq,
hub, endpoint->bInterval);
hub->urb->transfer_dma = hub->buffer_dma;
hub->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;

/* maybe cycle the hub leds */
if (hub->has_indicators && blinkenlights)
Expand Down Expand Up @@ -1162,8 +1158,7 @@ static void hub_disconnect(struct usb_interface *intf)
kfree(hub->port_owners);
kfree(hub->descriptor);
kfree(hub->status);
usb_buffer_free(hub->hdev, sizeof(*hub->buffer), hub->buffer,
hub->buffer_dma);
kfree(hub->buffer);

kref_put(&hub->kref, hub_release);
}
Expand Down

0 comments on commit e244c59

Please sign in to comment.