summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-25 12:57:35 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-25 12:57:35 +0000
commitefae7066fc2ef048772d9059eac5e0047efb3109 (patch)
treecc70ccb0954125b558fa9ebe367ef35961482fcd /target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch
parent05735d303b93c2a1050ef515e8c67e393ae3987f (diff)
adm5120: remove 2.6.38 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31475 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch')
-rw-r--r--target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch b/target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch
deleted file mode 100644
index 14c54bbd5b..0000000000
--- a/target/linux/adm5120/patches-2.6.38/010-adm5120_usb_new_api.patch
+++ /dev/null
@@ -1,53 +0,0 @@
---- a/drivers/usb/host/adm5120-hcd.c
-+++ b/drivers/usb/host/adm5120-hcd.c
-@@ -32,6 +32,7 @@
- #include <linux/list.h>
- #include <linux/usb.h>
- #include <linux/usb/otg.h>
-+#include <linux/usb/hcd.h>
- #include <linux/dma-mapping.h>
- #include <linux/dmapool.h>
- #include <linux/reboot.h>
-@@ -43,8 +44,6 @@
- #include <asm/unaligned.h>
- #include <asm/byteorder.h>
-
--#include "../core/hcd.h"
--#include "../core/hub.h"
-
- #define DRIVER_VERSION "0.27.0"
- #define DRIVER_AUTHOR "Gabor Juhos <juhosg@openwrt.org>"
-@@ -571,7 +570,7 @@ static int admhc_run(struct admhcd *ahcd
- periodic_reinit(ahcd);
-
- /* use rhsc irqs after khubd is fully initialized */
-- hcd->poll_rh = 1;
-+ set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
- hcd->uses_new_polling = 1;
-
- #if 0
-@@ -688,7 +687,7 @@ static irqreturn_t admhc_irq(struct usb_
- */
- admhc_vdbg(ahcd, "Resume Detect\n");
- admhc_intr_ack(ahcd, ADMHC_INTR_RESI);
-- hcd->poll_rh = 1;
-+ set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
- if (ahcd->autostop) {
- spin_lock(&ahcd->lock);
- admhc_rh_resume(ahcd);
---- a/drivers/usb/host/adm5120-hub.c
-+++ b/drivers/usb/host/adm5120-hub.c
-@@ -106,8 +106,11 @@ admhc_hub_status_data(struct usb_hcd *hc
- }
- }
-
-- hcd->poll_rh = admhc_root_hub_state_changes(ahcd, changed,
-- any_connected);
-+ if (admhc_root_hub_state_changes(ahcd, changed,
-+ any_connected))
-+ set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
-+ else
-+ clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
-
- done:
- spin_unlock_irqrestore(&ahcd->lock, flags);