]> Git Repo - linux.git/commitdiff
USB: make the usb_device numa_node get assigned from controller
authorYinghai Lu <[email protected]>
Mon, 9 Jul 2007 19:03:09 +0000 (12:03 -0700)
committerGreg Kroah-Hartman <[email protected]>
Thu, 12 Jul 2007 23:34:41 +0000 (16:34 -0700)
So we can use dev_to_node(&usb_dev->dev) later in kmalloc_node to dma buffer

Signed-off-by: Yinghai Lu <[email protected]>
Cc: Andi Kleen <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/core/usb.c

index 4a6299bd00478156417a7ed757ffc0d261bdc736..c611b3cbc67b7ae17a76321fe71837386c3d94dd 100644 (file)
@@ -253,6 +253,7 @@ usb_alloc_dev(struct usb_device *parent, struct usb_bus *bus, unsigned port1)
        dev->dev.bus = &usb_bus_type;
        dev->dev.type = &usb_device_type;
        dev->dev.dma_mask = bus->controller->dma_mask;
+       set_dev_node(&dev->dev, dev_to_node(bus->controller));
        dev->state = USB_STATE_ATTACHED;
 
        INIT_LIST_HEAD(&dev->ep0.urb_list);
This page took 0.046631 seconds and 4 git commands to generate.