--- ./drivers/usb-dist/host/ohci-dbg.c Thu Jan 2 13:18:42 2003 +++ ./drivers/usb/host/ohci-dbg.c Thu Jan 2 15:04:38 2003 @@ -318,6 +318,10 @@ } } +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,32) +# define DRIVERFS_DEBUG_FILES +#endif + #else static inline void ohci_dump (struct ohci_hcd *controller, int verbose) {} @@ -325,6 +329,8 @@ /*-------------------------------------------------------------------------*/ +#ifdef DRIVERFS_DEBUG_FILES + static ssize_t show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed) { @@ -522,5 +528,12 @@ device_remove_file (bus->hcd.controller, &dev_attr_periodic); } +#else /* empty stubs for creating those files */ + +static inline void create_debug_files (struct ohci_hcd *bus) { } +static inline void remove_debug_files (struct ohci_hcd *bus) { } + +#endif /* DRIVERFS_DEBUG_FILES */ + /*-------------------------------------------------------------------------*/