aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-10-04 17:45:05 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-10-04 17:45:05 +0000
commitcdfc078f69fd70b5fa10a949e7de1bdbae08a1c1 (patch)
treee3e097a3c6fbaeed6f8726159014b049f9852ade /target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch
parent6c7a71c78ecaf19ba40305f78e889d8295e5d745 (diff)
downloadupstream-cdfc078f69fd70b5fa10a949e7de1bdbae08a1c1.tar.gz
upstream-cdfc078f69fd70b5fa10a949e7de1bdbae08a1c1.tar.bz2
upstream-cdfc078f69fd70b5fa10a949e7de1bdbae08a1c1.zip
linux/adm5120: add preliminary 2.6.36 kernel support (refresh patches)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23224 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch')
-rw-r--r--target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch b/target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch
new file mode 100644
index 0000000000..4fd0283f41
--- /dev/null
+++ b/target/linux/adm5120/patches-2.6.36/902-adm5120-usb-remove-dev-power-power_state.patch
@@ -0,0 +1,11 @@
+--- a/drivers/usb/host/adm5120-dbg.c
++++ b/drivers/usb/host/adm5120-dbg.c
+@@ -642,7 +642,7 @@ static ssize_t fill_registers_buffer(str
+ hcd->product_desc,
+ hcd_name);
+
+- if (bus->controller->power.power_state.event) {
++ if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) {
+ size -= scnprintf(next, size,
+ "SUSPENDED (no register access)\n");
+ goto done;