diff options
-rw-r--r-- | drivers/usb/core/usb-acpi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c index 8947b203d5a4..ce45f5535236 100644 --- a/drivers/usb/core/usb-acpi.c +++ b/drivers/usb/core/usb-acpi.c | |||
@@ -52,18 +52,19 @@ out: | |||
52 | static int usb_acpi_check_pld(struct usb_device *udev, acpi_handle handle) | 52 | static int usb_acpi_check_pld(struct usb_device *udev, acpi_handle handle) |
53 | { | 53 | { |
54 | acpi_status status; | 54 | acpi_status status; |
55 | struct acpi_pld pld; | 55 | struct acpi_pld_info *pld; |
56 | 56 | ||
57 | status = acpi_get_physical_device_location(handle, &pld); | 57 | status = acpi_get_physical_device_location(handle, &pld); |
58 | 58 | ||
59 | if (ACPI_FAILURE(status)) | 59 | if (ACPI_FAILURE(status)) |
60 | return -ENODEV; | 60 | return -ENODEV; |
61 | 61 | ||
62 | if (pld.user_visible) | 62 | if (pld->user_visible) |
63 | udev->removable = USB_DEVICE_REMOVABLE; | 63 | udev->removable = USB_DEVICE_REMOVABLE; |
64 | else | 64 | else |
65 | udev->removable = USB_DEVICE_FIXED; | 65 | udev->removable = USB_DEVICE_FIXED; |
66 | 66 | ||
67 | ACPI_FREE(pld); | ||
67 | return 0; | 68 | return 0; |
68 | } | 69 | } |
69 | 70 | ||