<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">ChangeSet 1.934, 2003/01/09 10:29:40-08:00, greg@kroah.com

USB: fix ehci build for older versions of gcc


diff -Nru a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
--- a/drivers/usb/host/ehci-dbg.c	Thu Jan  9 11:09:44 2003
+++ b/drivers/usb/host/ehci-dbg.c	Thu Jan  9 11:09:44 2003
@@ -18,38 +18,14 @@
 
 /* this file is part of ehci-hcd.c */
 
-#if LINUX_VERSION_CODE &gt; KERNEL_VERSION(2,5,50)
-
 #define ehci_dbg(ehci, fmt, args...) \
-	dev_dbg ((ehci)-&gt;hcd.controller, fmt, ## args )
+	dev_dbg ((ehci)-&gt;hcd.controller , fmt , ## args )
 #define ehci_err(ehci, fmt, args...) \
-	dev_err ((ehci)-&gt;hcd.controller, fmt, ## args )
+	dev_err ((ehci)-&gt;hcd.controller , fmt , ## args )
 #define ehci_info(ehci, fmt, args...) \
-	dev_info ((ehci)-&gt;hcd.controller, fmt, ## args )
+	dev_info ((ehci)-&gt;hcd.controller , fmt , ## args )
 #define ehci_warn(ehci, fmt, args...) \
-	dev_warn ((ehci)-&gt;hcd.controller, fmt, ## args )
-
-#else
-
-#ifdef DEBUG
-#define ehci_dbg(ehci, fmt, args...) \
-	printk(KERN_DEBUG "%s %s: " fmt, hcd_name, \
-		(ehci)-&gt;hcd.pdev-&gt;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)-&gt;hcd.pdev-&gt;slot_name, ## args )
-#define ehci_info(ehci, fmt, args...) \
-	printk(KERN_INFO "%s %s: " fmt, hcd_name, \
-		(ehci)-&gt;hcd.pdev-&gt;slot_name, ## args )
-#define ehci_warn(ehci, fmt, args...) \
-	printk(KERN_WARNING "%s %s: " fmt, hcd_name, \
-		(ehci)-&gt;hcd.pdev-&gt;slot_name, ## args )
-#endif
-
+	dev_warn ((ehci)-&gt;hcd.controller , fmt , ## args )
 
 #ifdef EHCI_VERBOSE_DEBUG
 #	define vdbg dbg
</pre></body></html>