Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331711
b: refs/heads/master
c: 59e6423
h: refs/heads/master
i:
  331709: cef8095
  331707: 9ea5a90
  331703: b182fd5
  331695: cbd8a2b
  331679: 6106380
  331647: e201068
v: v3
  • Loading branch information
Feng Tang authored and Len Brown committed Sep 21, 2012
1 parent 67ff951 commit 414a2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 8ede06aba5dffa78a27a18c47a9059eb38072ada
refs/heads/master: 59e6423ba8aaa42289457a15ffc7d111a955a2fa
5 changes: 3 additions & 2 deletions trunk/drivers/usb/core/usb-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,19 @@ static int usb_acpi_check_upc(struct usb_device *udev, acpi_handle handle)
static int usb_acpi_check_pld(struct usb_device *udev, acpi_handle handle)
{
acpi_status status;
struct acpi_pld pld;
struct acpi_pld_info *pld;

status = acpi_get_physical_device_location(handle, &pld);

if (ACPI_FAILURE(status))
return -ENODEV;

if (pld.user_visible)
if (pld->user_visible)
udev->removable = USB_DEVICE_REMOVABLE;
else
udev->removable = USB_DEVICE_FIXED;

ACPI_FREE(pld);
return 0;
}

Expand Down

0 comments on commit 414a2da

Please sign in to comment.