On Sat, Aug 8, 2009 at 5:38 AM, Hauke Mehrtens<hauke@xxxxxxxxxx> wrote: > > Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> So actually I have this here for when we get around to backport the usb stuff to older kernels, the usb poison stuff, if I remember correctly. I just never finished that. I'd prefer to drop it if we're sure we won't need it to make ar9170 compile against older kernels. Luis > --- > compat/compat-2.6.28.c | 40 ---------------------------------------- > compat/compat-2.6.28.h | 3 --- > 2 files changed, 0 insertions(+), 43 deletions(-) > > diff --git a/compat/compat-2.6.28.c b/compat/compat-2.6.28.c > index 33871a2..965be80 100644 > --- a/compat/compat-2.6.28.c > +++ b/compat/compat-2.6.28.c > @@ -167,46 +167,6 @@ struct urb *usb_get_from_anchor(struct usb_anchor *anchor) > > EXPORT_SYMBOL_GPL(usb_get_from_anchor); > > -/** > - * usb_scuttle_anchored_urbs - unanchor all an anchor's urbs > - * @anchor: the anchor whose urbs you want to unanchor > - * > - * use this to get rid of all an anchor's urbs > - */ > -void usb_scuttle_anchored_urbs(struct usb_anchor *anchor) > -{ > - struct urb *victim; > - unsigned long flags; > - > - spin_lock_irqsave(&anchor->lock, flags); > - while (!list_empty(&anchor->urb_list)) { > - victim = list_entry(anchor->urb_list.prev, struct urb, > - anchor_list); > - usb_get_urb(victim); > - spin_unlock_irqrestore(&anchor->lock, flags); > - /* this may free the URB */ > - usb_unanchor_urb(victim); > - usb_put_urb(victim); > - spin_lock_irqsave(&anchor->lock, flags); > - } > - spin_unlock_irqrestore(&anchor->lock, flags); > -} > - > -EXPORT_SYMBOL_GPL(usb_scuttle_anchored_urbs); > - > -/** > - * usb_anchor_empty - is an anchor empty > - * @anchor: the anchor you want to query > - * > - * returns 1 if the anchor has no urbs associated with it > - */ > -int usb_anchor_empty(struct usb_anchor *anchor) > -{ > - return list_empty(&anchor->urb_list); > -} > - > -EXPORT_SYMBOL_GPL(usb_anchor_empty); > - > > void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) > { > diff --git a/compat/compat-2.6.28.h b/compat/compat-2.6.28.h > index e25259f..0a305d2 100644 > --- a/compat/compat-2.6.28.h > +++ b/compat/compat-2.6.28.h > @@ -47,9 +47,6 @@ extern void usb_poison_anchored_urbs(struct usb_anchor *anchor); > #endif > > extern struct urb *usb_get_from_anchor(struct usb_anchor *anchor); > -extern void usb_scuttle_anchored_urbs(struct usb_anchor *anchor); > -extern int usb_anchor_empty(struct usb_anchor *anchor); > - > > void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); > > -- > 1.6.2.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html