diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-28 11:00:55 -0700 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-28 11:00:55 -0700 | 
| commit | 02d5f0857bc2962625fa2d34957d43a9e3175eb4 (patch) | |
| tree | 1146b3a025f8257a99b9a02eb62a4e338bb6ec01 /drivers/usb/core/usb-acpi.c | |
| parent | 659597b77493959c699b4e99841a2c778eaa70bc (diff) | |
| parent | 482b0b5d82bd916cc0c55a2abf65bdc69023b843 (diff) | |
| download | olio-linux-3.10-02d5f0857bc2962625fa2d34957d43a9e3175eb4.tar.xz olio-linux-3.10-02d5f0857bc2962625fa2d34957d43a9e3175eb4.zip  | |
Merge branch 'usb-linus' into usb-next
This lets us fix the build error that happens when these two trees are merged
together.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/usb-acpi.c')
| -rw-r--r-- | drivers/usb/core/usb-acpi.c | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c index b6f4bad3f75..255c14464bf 100644 --- a/drivers/usb/core/usb-acpi.c +++ b/drivers/usb/core/usb-acpi.c @@ -15,6 +15,7 @@  #include <linux/kernel.h>  #include <linux/acpi.h>  #include <linux/pci.h> +#include <linux/usb/hcd.h>  #include <acpi/acpi_bus.h>  #include "usb.h" @@ -188,8 +189,13 @@ static int usb_acpi_find_device(struct device *dev, acpi_handle *handle)  		 * connected to.  		 */  		if (!udev->parent) { -			*handle = acpi_get_child(DEVICE_ACPI_HANDLE(&udev->dev), +			struct usb_hcd *hcd = bus_to_hcd(udev->bus); +			int raw_port_num; + +			raw_port_num = usb_hcd_find_raw_port_number(hcd,  				port_num); +			*handle = acpi_get_child(DEVICE_ACPI_HANDLE(&udev->dev), +				raw_port_num);  			if (!*handle)  				return -ENODEV;  		} else {  |