aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-06-27 11:39:50 -0400
committerJeff Garzik <jeff@garzik.org>2006-07-05 13:42:57 -0400
commit9b91cf9daac41eeaaea57ecfe68dc13bb0305fa9 (patch)
tree301308991315efc8dbe07ccfe1ee2f937b50a1c1 /drivers/net/b44.c
parent2e8a538d865de0eb9813c8a0f2284e920299c0cc (diff)
[netdrvr] use dev_xxx() printk helpers, rather than dev_printk(KERN_xxx, ...
Suggested by Jiri Slaby. Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r--drivers/net/b44.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index 5815e3dc1251..bea0fc0ede2f 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -2120,13 +2120,13 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2120 2120
2121 err = pci_enable_device(pdev); 2121 err = pci_enable_device(pdev);
2122 if (err) { 2122 if (err) {
2123 dev_printk(KERN_ERR, &pdev->dev, "Cannot enable PCI device, " 2123 dev_err(&pdev->dev, "Cannot enable PCI device, "
2124 "aborting.\n"); 2124 "aborting.\n");
2125 return err; 2125 return err;
2126 } 2126 }
2127 2127
2128 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { 2128 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {
2129 dev_printk(KERN_ERR, &pdev->dev, 2129 dev_err(&pdev->dev,
2130 "Cannot find proper PCI device " 2130 "Cannot find proper PCI device "
2131 "base address, aborting.\n"); 2131 "base address, aborting.\n");
2132 err = -ENODEV; 2132 err = -ENODEV;
@@ -2135,7 +2135,7 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2135 2135
2136 err = pci_request_regions(pdev, DRV_MODULE_NAME); 2136 err = pci_request_regions(pdev, DRV_MODULE_NAME);
2137 if (err) { 2137 if (err) {
2138 dev_printk(KERN_ERR, &pdev->dev, 2138 dev_err(&pdev->dev,
2139 "Cannot obtain PCI resources, aborting.\n"); 2139 "Cannot obtain PCI resources, aborting.\n");
2140 goto err_out_disable_pdev; 2140 goto err_out_disable_pdev;
2141 } 2141 }
@@ -2144,15 +2144,13 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2144 2144
2145 err = pci_set_dma_mask(pdev, (u64) B44_DMA_MASK); 2145 err = pci_set_dma_mask(pdev, (u64) B44_DMA_MASK);
2146 if (err) { 2146 if (err) {
2147 dev_printk(KERN_ERR, &pdev->dev, 2147 dev_err(&pdev->dev, "No usable DMA configuration, aborting.\n");
2148 "No usable DMA configuration, aborting.\n");
2149 goto err_out_free_res; 2148 goto err_out_free_res;
2150 } 2149 }
2151 2150
2152 err = pci_set_consistent_dma_mask(pdev, (u64) B44_DMA_MASK); 2151 err = pci_set_consistent_dma_mask(pdev, (u64) B44_DMA_MASK);
2153 if (err) { 2152 if (err) {
2154 dev_printk(KERN_ERR, &pdev->dev, 2153 dev_err(&pdev->dev, "No usable DMA configuration, aborting.\n");
2155 "No usable DMA configuration, aborting.\n");
2156 goto err_out_free_res; 2154 goto err_out_free_res;
2157 } 2155 }
2158 2156
@@ -2161,8 +2159,7 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2161 2159
2162 dev = alloc_etherdev(sizeof(*bp)); 2160 dev = alloc_etherdev(sizeof(*bp));
2163 if (!dev) { 2161 if (!dev) {
2164 dev_printk(KERN_ERR, &pdev->dev, 2162 dev_err(&pdev->dev, "Etherdev alloc failed, aborting.\n");
2165 "Etherdev alloc failed, aborting.\n");
2166 err = -ENOMEM; 2163 err = -ENOMEM;
2167 goto err_out_free_res; 2164 goto err_out_free_res;
2168 } 2165 }
@@ -2183,8 +2180,7 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2183 2180
2184 bp->regs = ioremap(b44reg_base, b44reg_len); 2181 bp->regs = ioremap(b44reg_base, b44reg_len);
2185 if (bp->regs == 0UL) { 2182 if (bp->regs == 0UL) {
2186 dev_printk(KERN_ERR, &pdev->dev, "Cannot map device registers, " 2183 dev_err(&pdev->dev, "Cannot map device registers, aborting.\n");
2187 "aborting.\n");
2188 err = -ENOMEM; 2184 err = -ENOMEM;
2189 goto err_out_free_dev; 2185 goto err_out_free_dev;
2190 } 2186 }
@@ -2214,7 +2210,7 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2214 2210
2215 err = b44_get_invariants(bp); 2211 err = b44_get_invariants(bp);
2216 if (err) { 2212 if (err) {
2217 dev_printk(KERN_ERR, &pdev->dev, 2213 dev_err(&pdev->dev,
2218 "Problem fetching invariants of chip, aborting.\n"); 2214 "Problem fetching invariants of chip, aborting.\n");
2219 goto err_out_iounmap; 2215 goto err_out_iounmap;
2220 } 2216 }
@@ -2235,8 +2231,7 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2235 2231
2236 err = register_netdev(dev); 2232 err = register_netdev(dev);
2237 if (err) { 2233 if (err) {
2238 dev_printk(KERN_ERR, &pdev->dev, "Cannot register net device, " 2234 dev_err(&pdev->dev, "Cannot register net device, aborting.\n");
2239 "aborting.\n");
2240 goto err_out_iounmap; 2235 goto err_out_iounmap;
2241 } 2236 }
2242 2237