aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-07 18:14:06 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-07 18:14:06 -0400
commitd8dc91b753b881c60c766c06aeec87675a07df4a (patch)
tree9a02f81fc5436b424d88c2340dcd6b0fe6ae6cca /drivers/usb/core
parent7035cdf36d5c4d913f68ff97e1c2e5603500d946 (diff)
parent3f44ea0d1c3835872033a6633135e16f87161202 (diff)
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Pul ACPI & Power Management updates from Len Brown: - acpidump utility added - intel_idle driver now supports IVB Xeon - turbostat utility can now count SMIs - ACPI can now bind to USB3 hubs - misc fixes * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (49 commits) ACPI: Add new sysfs interface to export device description ACPI: Harden acpi_table_parse_entries() against BIOS bug tools/power/turbostat: add option to count SMIs, re-name some options tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter deltas intel_idle: enable IVB Xeon support tools/power turbostat: add [-m MSR#] option tools/power turbostat: make -M output pretty tools/power turbostat: print more turbo-limit information tools/power turbostat: delete unused line tools/power turbostat: run on IVB Xeon tools/power/acpi/acpidump: create acpidump(8), local make install targets tools/power/acpi/acpidump: version 20101221 - find dynamic tables in sysfs ACPI: run _OSC after ACPI_FULL_INITIALIZATION tools/power/acpi/acpidump: create acpidump(8), local make install targets tools/power/acpi/acpidump: version 20101221 - find dynamic tables in sysfs tools/power/acpi/acpidump: version 20071116 tools/power/acpi/acpidump: version 20070714 tools/power/acpi/acpidump: version 20060606 tools/power/acpi/acpidump: version 20051111 xo15-ebook: convert to module_acpi_driver() ...
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/usb-acpi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c
index 0ef7d42d8abe..cef4252bb31a 100644
--- a/drivers/usb/core/usb-acpi.c
+++ b/drivers/usb/core/usb-acpi.c
@@ -87,7 +87,7 @@ static int usb_acpi_check_port_connect_type(struct usb_device *hdev,
87 acpi_status status; 87 acpi_status status;
88 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; 88 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
89 union acpi_object *upc; 89 union acpi_object *upc;
90 struct acpi_pld pld; 90 struct acpi_pld_info *pld;
91 int ret = 0; 91 int ret = 0;
92 92
93 /* 93 /*
@@ -111,16 +111,17 @@ static int usb_acpi_check_port_connect_type(struct usb_device *hdev,
111 } 111 }
112 112
113 if (upc->package.elements[0].integer.value) 113 if (upc->package.elements[0].integer.value)
114 if (pld.user_visible) 114 if (pld->user_visible)
115 usb_set_hub_port_connect_type(hdev, port1, 115 usb_set_hub_port_connect_type(hdev, port1,
116 USB_PORT_CONNECT_TYPE_HOT_PLUG); 116 USB_PORT_CONNECT_TYPE_HOT_PLUG);
117 else 117 else
118 usb_set_hub_port_connect_type(hdev, port1, 118 usb_set_hub_port_connect_type(hdev, port1,
119 USB_PORT_CONNECT_TYPE_HARD_WIRED); 119 USB_PORT_CONNECT_TYPE_HARD_WIRED);
120 else if (!pld.user_visible) 120 else if (!pld->user_visible)
121 usb_set_hub_port_connect_type(hdev, port1, USB_PORT_NOT_USED); 121 usb_set_hub_port_connect_type(hdev, port1, USB_PORT_NOT_USED);
122 122
123out: 123out:
124 ACPI_FREE(pld);
124 kfree(upc); 125 kfree(upc);
125 return ret; 126 return ret;
126} 127}