summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-29 07:36:37 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-29 07:36:37 +0000
commit71b94eaba41e5b7d038d3ad09a404316d9430ae5 (patch)
tree752bbd451d1c9f18cbe87aaa92722a9e9eef64f2 /target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch
parent064b1182e547d92fe6e0cb58045697ad6e91fc40 (diff)
adm5120: remove 2.6.32 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31510 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch')
-rw-r--r--target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch116
1 files changed, 0 insertions, 116 deletions
diff --git a/target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch b/target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch
deleted file mode 100644
index 695cce93b..000000000
--- a/target/linux/adm5120/patches-2.6.32/903-adm5120-usb-use-the-admhcd-structure-directly-in-debugfs-files.patch
+++ /dev/null
@@ -1,116 +0,0 @@
---- a/drivers/usb/host/adm5120-dbg.c
-+++ b/drivers/usb/host/adm5120-dbg.c
-@@ -419,7 +419,7 @@ static struct dentry *admhc_debug_root;
-
- struct debug_buffer {
- ssize_t (*fill_func)(struct debug_buffer *); /* fill method */
-- struct device *dev;
-+ struct admhcd *ahcd;
- struct mutex mutex; /* protect filling of buffer */
- size_t count; /* number of characters filled into buffer */
- char *page;
-@@ -494,15 +494,11 @@ show_list(struct admhcd *ahcd, char *buf
-
- static ssize_t fill_async_buffer(struct debug_buffer *buf)
- {
-- struct usb_bus *bus;
-- struct usb_hcd *hcd;
- struct admhcd *ahcd;
- size_t temp;
- unsigned long flags;
-
-- bus = dev_get_drvdata(buf->dev);
-- hcd = bus_to_hcd(bus);
-- ahcd = hcd_to_admhcd(hcd);
-+ ahcd = buf->ahcd;
-
- spin_lock_irqsave(&ahcd->lock, flags);
- temp = show_list(ahcd, buf->page, PAGE_SIZE, ahcd->ed_head);
-@@ -516,8 +512,6 @@ static ssize_t fill_async_buffer(struct
-
- static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
- {
-- struct usb_bus *bus;
-- struct usb_hcd *hcd;
- struct admhcd *ahcd;
- struct ed **seen, *ed;
- unsigned long flags;
-@@ -530,9 +524,7 @@ static ssize_t fill_periodic_buffer(stru
- return 0;
- seen_count = 0;
-
-- bus = dev_get_drvdata(buf->dev);
-- hcd = bus_to_hcd(bus);
-- ahcd = hcd_to_admhcd(hcd);
-+ ahcd = buf->ahcd;
- next = buf->page;
- size = PAGE_SIZE;
-
-@@ -615,7 +607,6 @@ static ssize_t fill_periodic_buffer(stru
-
- static ssize_t fill_registers_buffer(struct debug_buffer *buf)
- {
-- struct usb_bus *bus;
- struct usb_hcd *hcd;
- struct admhcd *ahcd;
- struct admhcd_regs __iomem *regs;
-@@ -624,9 +615,8 @@ static ssize_t fill_registers_buffer(str
- char *next;
- u32 rdata;
-
-- bus = dev_get_drvdata(buf->dev);
-- hcd = bus_to_hcd(bus);
-- ahcd = hcd_to_admhcd(hcd);
-+ ahcd = buf->ahcd;
-+ hcd = admhcd_to_hcd(ahcd);
- regs = ahcd->regs;
- next = buf->page;
- size = PAGE_SIZE;
-@@ -691,7 +681,7 @@ done:
- }
-
-
--static struct debug_buffer *alloc_buffer(struct device *dev,
-+static struct debug_buffer *alloc_buffer(struct admhcd *ahcd,
- ssize_t (*fill_func)(struct debug_buffer *))
- {
- struct debug_buffer *buf;
-@@ -699,7 +689,7 @@ static struct debug_buffer *alloc_buffer
- buf = kzalloc(sizeof(struct debug_buffer), GFP_KERNEL);
-
- if (buf) {
-- buf->dev = dev;
-+ buf->ahcd = ahcd;
- buf->fill_func = fill_func;
- mutex_init(&buf->mutex);
- }
-@@ -792,26 +782,25 @@ static int debug_registers_open(struct i
- static inline void create_debug_files(struct admhcd *ahcd)
- {
- struct usb_bus *bus = &admhcd_to_hcd(ahcd)->self;
-- struct device *dev = bus->dev;
-
- ahcd->debug_dir = debugfs_create_dir(bus->bus_name, admhc_debug_root);
- if (!ahcd->debug_dir)
- goto dir_error;
-
- ahcd->debug_async = debugfs_create_file("async", S_IRUGO,
-- ahcd->debug_dir, dev,
-+ ahcd->debug_dir, ahcd,
- &debug_async_fops);
- if (!ahcd->debug_async)
- goto async_error;
-
- ahcd->debug_periodic = debugfs_create_file("periodic", S_IRUGO,
-- ahcd->debug_dir, dev,
-+ ahcd->debug_dir, ahcd,
- &debug_periodic_fops);
- if (!ahcd->debug_periodic)
- goto periodic_error;
-
- ahcd->debug_registers = debugfs_create_file("registers", S_IRUGO,
-- ahcd->debug_dir, dev,
-+ ahcd->debug_dir, ahcd,
- &debug_registers_fops);
- if (!ahcd->debug_registers)
- goto registers_error;