aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/r6040.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-01-08 14:00:52 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-08 14:00:52 -0500
commit9a48ce84004eb61940850c7066af5d222a5f81c9 (patch)
tree0d765ea364ea310b9f36f26d3cddd4bf49b96f40 /drivers/net/r6040.c
parenta1d8f6015e0fab61cc27204560d54a442181be54 (diff)
r6040: make printks consistent with DRV_NAME
This patch fixes some printks which were not prefixed with DRV_NAME, useful when having multiple cards/drivers on the system. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/r6040.c')
-rw-r--r--drivers/net/r6040.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 53bbddfc8c95..92b14c871351 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -200,7 +200,7 @@ struct r6040_private {
200 200
201static char version[] __devinitdata = KERN_INFO DRV_NAME 201static char version[] __devinitdata = KERN_INFO DRV_NAME
202 ": RDC R6040 NAPI net driver," 202 ": RDC R6040 NAPI net driver,"
203 "version "DRV_VERSION " (" DRV_RELDATE ")\n"; 203 "version "DRV_VERSION " (" DRV_RELDATE ")";
204 204
205static int phy_table[] = { PHY1_ADDR, PHY2_ADDR }; 205static int phy_table[] = { PHY1_ADDR, PHY2_ADDR };
206 206
@@ -330,7 +330,7 @@ static int r6040_alloc_rxbufs(struct net_device *dev)
330 do { 330 do {
331 skb = netdev_alloc_skb(dev, MAX_BUF_SIZE); 331 skb = netdev_alloc_skb(dev, MAX_BUF_SIZE);
332 if (!skb) { 332 if (!skb) {
333 printk(KERN_ERR "%s: failed to alloc skb for rx\n", dev->name); 333 printk(KERN_ERR DRV_NAME "%s: failed to alloc skb for rx\n", dev->name);
334 rc = -ENOMEM; 334 rc = -ENOMEM;
335 goto err_exit; 335 goto err_exit;
336 } 336 }
@@ -1077,20 +1077,20 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
1077 /* this should always be supported */ 1077 /* this should always be supported */
1078 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1078 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
1079 if (err) { 1079 if (err) {
1080 printk(KERN_ERR DRV_NAME "32-bit PCI DMA addresses" 1080 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses"
1081 "not supported by the card\n"); 1081 "not supported by the card\n");
1082 goto err_out; 1082 goto err_out;
1083 } 1083 }
1084 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1084 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
1085 if (err) { 1085 if (err) {
1086 printk(KERN_ERR DRV_NAME "32-bit PCI DMA addresses" 1086 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses"
1087 "not supported by the card\n"); 1087 "not supported by the card\n");
1088 goto err_out; 1088 goto err_out;
1089 } 1089 }
1090 1090
1091 /* IO Size check */ 1091 /* IO Size check */
1092 if (pci_resource_len(pdev, 0) < io_size) { 1092 if (pci_resource_len(pdev, 0) < io_size) {
1093 printk(KERN_ERR DRV_NAME "Insufficient PCI resources, aborting\n"); 1093 printk(KERN_ERR DRV_NAME ": Insufficient PCI resources, aborting\n");
1094 err = -EIO; 1094 err = -EIO;
1095 goto err_out; 1095 goto err_out;
1096 } 1096 }
@@ -1100,7 +1100,7 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
1100 1100
1101 dev = alloc_etherdev(sizeof(struct r6040_private)); 1101 dev = alloc_etherdev(sizeof(struct r6040_private));
1102 if (!dev) { 1102 if (!dev) {
1103 printk(KERN_ERR DRV_NAME "Failed to allocate etherdev\n"); 1103 printk(KERN_ERR DRV_NAME ": Failed to allocate etherdev\n");
1104 err = -ENOMEM; 1104 err = -ENOMEM;
1105 goto err_out; 1105 goto err_out;
1106 } 1106 }
@@ -1116,7 +1116,7 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
1116 1116
1117 ioaddr = pci_iomap(pdev, bar, io_size); 1117 ioaddr = pci_iomap(pdev, bar, io_size);
1118 if (!ioaddr) { 1118 if (!ioaddr) {
1119 printk(KERN_ERR "ioremap failed for device %s\n", 1119 printk(KERN_ERR DRV_NAME ": ioremap failed for device %s\n",
1120 pci_name(pdev)); 1120 pci_name(pdev));
1121 err = -EIO; 1121 err = -EIO;
1122 goto err_out_free_res; 1122 goto err_out_free_res;