Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361930
b: refs/heads/master
c: bafcaf6
h: refs/heads/master
v: v3
  • Loading branch information
Lan Tianyu authored and Sarah Sharp committed Mar 25, 2013
1 parent b44d768 commit 68c500c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 3f5eb14135ba9d97ba4b8514fc7ef5e0dac2abf4
refs/heads/master: bafcaf6d84b5d1bf92dabd1ffe7753ed36b7552e
8 changes: 7 additions & 1 deletion trunk/drivers/usb/core/usb-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 68c500c

Please sign in to comment.