/* 2.6.28 compat code goes here */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
+#if defined(CONFIG_USB)
/*
* Compat-wireless notes for USB backport stuff:
*
}
EXPORT_SYMBOL_GPL(usb_poison_urb);
#endif
+#endif /* CONFIG_USB */
#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
#endif /* CONFIG_PCMCIA */
+#if defined(CONFIG_USB)
+
void usb_unpoison_urb(struct urb *urb)
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
}
EXPORT_SYMBOL_GPL(usb_anchor_empty);
+#endif /* CONFIG_USB */
#endif
-
void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
{
/*
#include <linux/etherdevice.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
+#if defined(CONFIG_USB)
/**
* usb_unpoison_anchored_urbs - let an anchor be used successfully again
* @anchor: anchor the requests are bound to
spin_unlock_irqrestore(&anchor->lock, flags);
}
EXPORT_SYMBOL_GPL(usb_unpoison_anchored_urbs);
+#endif /* CONFIG_USB */
#endif
/**
/* USB anchors were added as of 2.6.23 */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
+
+#if defined(CONFIG_USB)
#if 0
extern void usb_poison_urb(struct urb *urb);
#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);
+#endif /* CONFIG_USB */
#endif
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
+#if defined(CONFIG_USB)
extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
+#endif /* CONFIG_USB */
#endif
#define DIV_ROUND_CLOSEST(x, divisor)( \