Using Alan Cox's patch to ehci-dbg.c so it will compile on my system.
I'm using a MontaVista cross-compiler for MIPS (Globespan IVR) and it
chokes on lines in the EHCI driver that reference
ehci_{dbg|err|info|warn} -- I don't know if it's unique to that
compiler or not. Alan's change solves that. Stripping the 2.5.50
kernel check isn't necessary.
-Tom
http://www.kernel.org/diff/
diffview.cgi?css=%2Fdiff%2Fdiff.css;file=%2Fpub%2Flinux%2Fkernel%2Fpeopl
e%2Falan%2Flinux-2.4%2F2.4.21%2Fpatch-2.4.21-pre3-ac4.gz;z=347
--- linux.21pre3/drivers/usb/hcd/ehci-dbg.c 2003-01-07
14:03:09.000000000 +0000
+++ linux.21pre3-ac4/drivers/usb/hcd/ehci-dbg.c 2003-01-09
19:43:54.000000000 +0000
@@ -18,37 +18,23 @@
/* this file is part of ehci-hcd.c */
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,50)
-
-#define ehci_dbg(ehci, fmt, args...) \
- dev_dbg (*(ehci)->hcd.controller, fmt, ## args )
-#define ehci_err(ehci, fmt, args...) \
- dev_err (*(ehci)->hcd.controller, fmt, ## args )
-#define ehci_info(ehci, fmt, args...) \
- dev_info (*(ehci)->hcd.controller, fmt, ## args )
-#define ehci_warn(ehci, fmt, args...) \
- dev_warn (*(ehci)->hcd.controller, fmt, ## args )
-
-#else
-
#ifdef DEBUG
#define ehci_dbg(ehci, fmt, args...) \
- printk(KERN_DEBUG "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ printk(KERN_DEBUG "%s %s: " fmt , hcd_name , \
+ (ehci)->hcd.pdev->slot_name , ## args )
#else
#define ehci_dbg(ehci, fmt, args...) do { } while (0)
#endif
#define ehci_err(ehci, fmt, args...) \
- printk(KERN_ERR "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ printk(KERN_ERR "%s %s: " fmt , hcd_name , \
+ (ehci)->hcd.pdev->slot_name , ## args )
#define ehci_info(ehci, fmt, args...) \
- printk(KERN_INFO "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ printk(KERN_INFO "%s %s: " fmt , hcd_name , \
+ (ehci)->hcd.pdev->slot_name , ## args )
#define ehci_warn(ehci, fmt, args...) \
- printk(KERN_WARNING "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
-#endif
+ printk(KERN_WARNING "%s %s: " fmt , hcd_name , \
+ (ehci)->hcd.pdev->slot_name , ## args )
#ifdef EHCI_VERBOSE_DEBUG
-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving
your online business a competitive advantage. Test-drive a Thawte SSL
certificate - our easy online guide will show you how. Click here to get
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
