diff options
author | Bernhard Fischer <berny.f@aon.at> | 2005-06-27 17:36:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 18:11:44 -0400 |
commit | 177214af2946e86ce89324f379720ec0dc8d4a9e (patch) | |
tree | 42155f32096cd37a991e53cd0aa13de39dbe2091 /drivers/infiniband/hw/mthca/mthca_main.c | |
parent | cd4e8fb49d2326364971a56f5a4b664a976f3712 (diff) |
[PATCH] IB/mthca: Clean up error messages
- Fix incorrect cut-n-paste in error messages.
- Add missing newlines in error messages.
- Use DRV_NAME instead of "ib_mthca" in a couple of places.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_main.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c index b7a57194ad25..7f8106a0f2b0 100644 --- a/drivers/infiniband/hw/mthca/mthca_main.c +++ b/drivers/infiniband/hw/mthca/mthca_main.c | |||
@@ -70,7 +70,7 @@ MODULE_PARM_DESC(msi, "attempt to use MSI if nonzero"); | |||
70 | #endif /* CONFIG_PCI_MSI */ | 70 | #endif /* CONFIG_PCI_MSI */ |
71 | 71 | ||
72 | static const char mthca_version[] __devinitdata = | 72 | static const char mthca_version[] __devinitdata = |
73 | "ib_mthca: Mellanox InfiniBand HCA driver v" | 73 | DRV_NAME ": Mellanox InfiniBand HCA driver v" |
74 | DRV_VERSION " (" DRV_RELDATE ")\n"; | 74 | DRV_VERSION " (" DRV_RELDATE ")\n"; |
75 | 75 | ||
76 | static struct mthca_profile default_profile = { | 76 | static struct mthca_profile default_profile = { |
@@ -928,13 +928,13 @@ static int __devinit mthca_init_one(struct pci_dev *pdev, | |||
928 | */ | 928 | */ |
929 | if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM) || | 929 | if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM) || |
930 | pci_resource_len(pdev, 0) != 1 << 20) { | 930 | pci_resource_len(pdev, 0) != 1 << 20) { |
931 | dev_err(&pdev->dev, "Missing DCS, aborting."); | 931 | dev_err(&pdev->dev, "Missing DCS, aborting.\n"); |
932 | err = -ENODEV; | 932 | err = -ENODEV; |
933 | goto err_disable_pdev; | 933 | goto err_disable_pdev; |
934 | } | 934 | } |
935 | if (!(pci_resource_flags(pdev, 2) & IORESOURCE_MEM) || | 935 | if (!(pci_resource_flags(pdev, 2) & IORESOURCE_MEM) || |
936 | pci_resource_len(pdev, 2) != 1 << 23) { | 936 | pci_resource_len(pdev, 2) != 1 << 23) { |
937 | dev_err(&pdev->dev, "Missing UAR, aborting."); | 937 | dev_err(&pdev->dev, "Missing UAR, aborting.\n"); |
938 | err = -ENODEV; | 938 | err = -ENODEV; |
939 | goto err_disable_pdev; | 939 | goto err_disable_pdev; |
940 | } | 940 | } |
@@ -1164,7 +1164,7 @@ static struct pci_device_id mthca_pci_table[] = { | |||
1164 | MODULE_DEVICE_TABLE(pci, mthca_pci_table); | 1164 | MODULE_DEVICE_TABLE(pci, mthca_pci_table); |
1165 | 1165 | ||
1166 | static struct pci_driver mthca_driver = { | 1166 | static struct pci_driver mthca_driver = { |
1167 | .name = "ib_mthca", | 1167 | .name = DRV_NAME, |
1168 | .id_table = mthca_pci_table, | 1168 | .id_table = mthca_pci_table, |
1169 | .probe = mthca_init_one, | 1169 | .probe = mthca_init_one, |
1170 | .remove = __devexit_p(mthca_remove_one) | 1170 | .remove = __devexit_p(mthca_remove_one) |