[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <59e6423ba8aaa42289457a15ffc7d111a955a2fa.1349554106.git.len.brown@intel.com>
Date: Sat, 6 Oct 2012 16:09:35 -0400
From: Len Brown <lenb@...nel.org>
To: linux-acpi@...r.kernel.org, linux-pm@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Feng Tang <feng.tang@...el.com>,
Bob Moore <robert.moore@...el.com>,
Matthew Garrett <mjg@...hat.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Lan Tianyu <tianyu.lan@...el.com>,
Len Brown <len.brown@...el.com>
Subject: [PATCH 14/49] usb-acpi: Comply with the ACPI API change
From: Feng Tang <feng.tang@...el.com>
acpi_get_physical_device_location()'s 2nd argument has been changed
in ACPI implementaion, so need a follow-on change in
usb_acpi_check_pld().
Signed-off-by: Feng Tang <feng.tang@...el.com>
Signed-off-by: Bob Moore <robert.moore@...el.com>
Cc: Matthew Garrett <mjg@...hat.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Lan Tianyu <tianyu.lan@...el.com>
Signed-off-by: Len Brown <len.brown@...el.com>
---
drivers/usb/core/usb-acpi.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c
index 8947b20..ce45f55 100644
--- a/drivers/usb/core/usb-acpi.c
+++ b/drivers/usb/core/usb-acpi.c
@@ -52,18 +52,19 @@ out:
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;
}
--
1.8.0.rc0.18.gf84667d
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists