diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-10-02 11:47:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-17 17:41:02 -0400 |
commit | 2b70f07343389cb474235def00b021a645ede916 (patch) | |
tree | dd32720ba6c114f097cd4ff07aeaad4112c19031 /drivers/usb/host/ehci-hcd.c | |
parent | 1987625226a918cd20c334ffce5e2a224cba0718 (diff) |
USB: EHCI, OHCI, UHCI: remove version numbers
This patch (as1145) removes the essentially useless driver-version
strings from ehci-hcd, ohci-hcd, and uhci-hcd. It also unifies the
form of the banner lines they display upon loading and adds a missing
test for usb_disabled() to ehci-hcd.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index c6f9961eed3c..fcbc1f2b2377 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
@@ -60,7 +60,6 @@ | |||
60 | * providing early devices for those host controllers to talk to! | 60 | * providing early devices for those host controllers to talk to! |
61 | */ | 61 | */ |
62 | 62 | ||
63 | #define DRIVER_VERSION "10 Dec 2004" | ||
64 | #define DRIVER_AUTHOR "David Brownell" | 63 | #define DRIVER_AUTHOR "David Brownell" |
65 | #define DRIVER_DESC "USB 2.0 'Enhanced' Host Controller (EHCI) Driver" | 64 | #define DRIVER_DESC "USB 2.0 'Enhanced' Host Controller (EHCI) Driver" |
66 | 65 | ||
@@ -621,9 +620,9 @@ static int ehci_run (struct usb_hcd *hcd) | |||
621 | 620 | ||
622 | temp = HC_VERSION(ehci_readl(ehci, &ehci->caps->hc_capbase)); | 621 | temp = HC_VERSION(ehci_readl(ehci, &ehci->caps->hc_capbase)); |
623 | ehci_info (ehci, | 622 | ehci_info (ehci, |
624 | "USB %x.%x started, EHCI %x.%02x, driver %s%s\n", | 623 | "USB %x.%x started, EHCI %x.%02x%s\n", |
625 | ((ehci->sbrn & 0xf0)>>4), (ehci->sbrn & 0x0f), | 624 | ((ehci->sbrn & 0xf0)>>4), (ehci->sbrn & 0x0f), |
626 | temp >> 8, temp & 0xff, DRIVER_VERSION, | 625 | temp >> 8, temp & 0xff, |
627 | ignore_oc ? ", overcurrent ignored" : ""); | 626 | ignore_oc ? ", overcurrent ignored" : ""); |
628 | 627 | ||
629 | ehci_writel(ehci, INTR_MASK, | 628 | ehci_writel(ehci, INTR_MASK, |
@@ -995,9 +994,7 @@ static int ehci_get_frame (struct usb_hcd *hcd) | |||
995 | 994 | ||
996 | /*-------------------------------------------------------------------------*/ | 995 | /*-------------------------------------------------------------------------*/ |
997 | 996 | ||
998 | #define DRIVER_INFO DRIVER_VERSION " " DRIVER_DESC | 997 | MODULE_DESCRIPTION(DRIVER_DESC); |
999 | |||
1000 | MODULE_DESCRIPTION (DRIVER_INFO); | ||
1001 | MODULE_AUTHOR (DRIVER_AUTHOR); | 998 | MODULE_AUTHOR (DRIVER_AUTHOR); |
1002 | MODULE_LICENSE ("GPL"); | 999 | MODULE_LICENSE ("GPL"); |
1003 | 1000 | ||
@@ -1045,6 +1042,10 @@ static int __init ehci_hcd_init(void) | |||
1045 | { | 1042 | { |
1046 | int retval = 0; | 1043 | int retval = 0; |
1047 | 1044 | ||
1045 | if (usb_disabled()) | ||
1046 | return -ENODEV; | ||
1047 | |||
1048 | printk(KERN_INFO "%s: " DRIVER_DESC "\n", hcd_name); | ||
1048 | pr_debug("%s: block sizes: qh %Zd qtd %Zd itd %Zd sitd %Zd\n", | 1049 | pr_debug("%s: block sizes: qh %Zd qtd %Zd itd %Zd sitd %Zd\n", |
1049 | hcd_name, | 1050 | hcd_name, |
1050 | sizeof(struct ehci_qh), sizeof(struct ehci_qtd), | 1051 | sizeof(struct ehci_qh), sizeof(struct ehci_qtd), |