diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2007-07-09 15:03:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:34:41 -0400 |
commit | 70f458f668aa09cc45384728dec434f2975a3947 (patch) | |
tree | acf2da4cbd153500cf3492b1629461e17840f303 /drivers/usb | |
parent | 0ffbbe25a73db12792a05f725aa39f8a5de2c882 (diff) |
USB: make the usb_device numa_node get assigned from controller
So we can use dev_to_node(&usb_dev->dev) later in kmalloc_node to dma buffer
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Cc: Andi Kleen <ak@suse.de>
Acked-by: Christoph Lameter <clameter@sgi.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 4a6299bd0047..c611b3cbc67b 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -253,6 +253,7 @@ usb_alloc_dev(struct usb_device *parent, struct usb_bus *bus, unsigned port1) | |||
253 | dev->dev.bus = &usb_bus_type; | 253 | dev->dev.bus = &usb_bus_type; |
254 | dev->dev.type = &usb_device_type; | 254 | dev->dev.type = &usb_device_type; |
255 | dev->dev.dma_mask = bus->controller->dma_mask; | 255 | dev->dev.dma_mask = bus->controller->dma_mask; |
256 | set_dev_node(&dev->dev, dev_to_node(bus->controller)); | ||
256 | dev->state = USB_STATE_ATTACHED; | 257 | dev->state = USB_STATE_ATTACHED; |
257 | 258 | ||
258 | INIT_LIST_HEAD(&dev->ep0.urb_list); | 259 | INIT_LIST_HEAD(&dev->ep0.urb_list); |