USB: fix build with XEN and EARLY_PRINTK_DBGP enabled but USB_SUPPORT disabled
authorJan Beulich <JBeulich@suse.com>
Mon, 29 Oct 2012 16:45:54 +0000 (16:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 20:19:30 +0000 (13:19 -0700)
commit86effe5980e25f4fac10a0f22938c2fcd4a32690
tree4b0c1c8678737e7b7bcaf7579e6e7b76bffd73d4
parentd067a3155336894ca19d08b7359f824fbbdbc379
USB: fix build with XEN and EARLY_PRINTK_DBGP enabled but USB_SUPPORT disabled

Since there's no possible caller of dbgp_external_startup() and
dbgp_reset_prep() when !USB_EHCI_HCD, there's no point in building and
exporting these functions in that case. This eliminates a build error
under the conditions listed in the subject, introduced with the merge
f1c6872e4980bc4078cfaead05f892b3d78dea64.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/early/ehci-dbgp.c