]> git.hungrycats.org Git - linux/commitdiff
USB: fix ehci build for older versions of gcc
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 9 Jan 2003 02:29:40 +0000 (18:29 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 9 Jan 2003 02:29:40 +0000 (18:29 -0800)
drivers/usb/host/ehci-dbg.c

index 49c2a9e4e9cf560158c6a842f7192826d6f08bf5..6dcc5b9fcdbee0a24c69c04c65eec904cfcbc0ef 100644 (file)
 
 /* 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 )
+       dev_dbg ((ehci)->hcd.controller , fmt , ## args )
 #define ehci_err(ehci, fmt, args...) \
-       dev_err ((ehci)->hcd.controller, fmt, ## args )
+       dev_err ((ehci)->hcd.controller , fmt , ## args )
 #define ehci_info(ehci, fmt, args...) \
-       dev_info ((ehci)->hcd.controller, 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 )
-#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 )
-#define ehci_info(ehci, fmt, 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
-
+       dev_warn ((ehci)->hcd.controller , fmt , ## args )
 
 #ifdef EHCI_VERBOSE_DEBUG
 #      define vdbg dbg