diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2008-11-13 23:31:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 12:59:54 -0500 |
commit | f150fa1afbf69a87f54752579ff2bb769aad88b3 (patch) | |
tree | 00bab764efef6249694a804a76a4cdd9720811d1 /drivers/usb/core | |
parent | 5e5b0e5d6a354f6f457368149eb2e9a61e5576cf (diff) |
USB: Allow usbmon as a module even if usbcore is builtin
usbmon can only be built as a module if usbcore is a module too. Trivial
changes to the relevant Kconfig and Makefile (and a few trivial changes
elsewhere) allow usbmon to be built as a module even if usbcore is
builtin.
This is verified to work in all 9 permutations (3 correctly prohibited
by Kconfig, 6 build a suitable result).
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hcd.c | 4 | ||||
-rw-r--r-- | drivers/usb/core/hcd.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index e1b42626d04d..7403ed871abd 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c | |||
@@ -2028,7 +2028,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_platform_shutdown); | |||
2028 | 2028 | ||
2029 | /*-------------------------------------------------------------------------*/ | 2029 | /*-------------------------------------------------------------------------*/ |
2030 | 2030 | ||
2031 | #if defined(CONFIG_USB_MON) | 2031 | #if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE) |
2032 | 2032 | ||
2033 | struct usb_mon_operations *mon_ops; | 2033 | struct usb_mon_operations *mon_ops; |
2034 | 2034 | ||
@@ -2064,4 +2064,4 @@ void usb_mon_deregister (void) | |||
2064 | } | 2064 | } |
2065 | EXPORT_SYMBOL_GPL (usb_mon_deregister); | 2065 | EXPORT_SYMBOL_GPL (usb_mon_deregister); |
2066 | 2066 | ||
2067 | #endif /* CONFIG_USB_MON */ | 2067 | #endif /* CONFIG_USB_MON || CONFIG_USB_MON_MODULE */ |
diff --git a/drivers/usb/core/hcd.h b/drivers/usb/core/hcd.h index d202342b36b6..0aaa9cea6b38 100644 --- a/drivers/usb/core/hcd.h +++ b/drivers/usb/core/hcd.h | |||
@@ -421,7 +421,7 @@ static inline void usbfs_cleanup(void) { } | |||
421 | 421 | ||
422 | /*-------------------------------------------------------------------------*/ | 422 | /*-------------------------------------------------------------------------*/ |
423 | 423 | ||
424 | #if defined(CONFIG_USB_MON) | 424 | #if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE) |
425 | 425 | ||
426 | struct usb_mon_operations { | 426 | struct usb_mon_operations { |
427 | void (*urb_submit)(struct usb_bus *bus, struct urb *urb); | 427 | void (*urb_submit)(struct usb_bus *bus, struct urb *urb); |
@@ -463,7 +463,7 @@ static inline void usbmon_urb_submit_error(struct usb_bus *bus, struct urb *urb, | |||
463 | static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, | 463 | static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, |
464 | int status) {} | 464 | int status) {} |
465 | 465 | ||
466 | #endif /* CONFIG_USB_MON */ | 466 | #endif /* CONFIG_USB_MON || CONFIG_USB_MON_MODULE */ |
467 | 467 | ||
468 | /*-------------------------------------------------------------------------*/ | 468 | /*-------------------------------------------------------------------------*/ |
469 | 469 | ||