diff options
Diffstat (limited to 'drivers/net/cassini.c')
-rw-r--r-- | drivers/net/cassini.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 428e2067738c..a31544ccb3c4 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c | |||
@@ -4887,13 +4887,12 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4887 | 4887 | ||
4888 | err = pci_enable_device(pdev); | 4888 | err = pci_enable_device(pdev); |
4889 | if (err) { | 4889 | if (err) { |
4890 | dev_printk(KERN_ERR, &pdev->dev, "Cannot enable PCI device, " | 4890 | dev_err(&pdev->dev, "Cannot enable PCI device, aborting.\n"); |
4891 | "aborting.\n"); | ||
4892 | return err; | 4891 | return err; |
4893 | } | 4892 | } |
4894 | 4893 | ||
4895 | if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { | 4894 | if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { |
4896 | dev_printk(KERN_ERR, &pdev->dev, "Cannot find proper PCI device " | 4895 | dev_err(&pdev->dev, "Cannot find proper PCI device " |
4897 | "base address, aborting.\n"); | 4896 | "base address, aborting.\n"); |
4898 | err = -ENODEV; | 4897 | err = -ENODEV; |
4899 | goto err_out_disable_pdev; | 4898 | goto err_out_disable_pdev; |
@@ -4901,7 +4900,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4901 | 4900 | ||
4902 | dev = alloc_etherdev(sizeof(*cp)); | 4901 | dev = alloc_etherdev(sizeof(*cp)); |
4903 | if (!dev) { | 4902 | if (!dev) { |
4904 | dev_printk(KERN_ERR, &pdev->dev, "Etherdev alloc failed, aborting.\n"); | 4903 | dev_err(&pdev->dev, "Etherdev alloc failed, aborting.\n"); |
4905 | err = -ENOMEM; | 4904 | err = -ENOMEM; |
4906 | goto err_out_disable_pdev; | 4905 | goto err_out_disable_pdev; |
4907 | } | 4906 | } |
@@ -4910,8 +4909,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4910 | 4909 | ||
4911 | err = pci_request_regions(pdev, dev->name); | 4910 | err = pci_request_regions(pdev, dev->name); |
4912 | if (err) { | 4911 | if (err) { |
4913 | dev_printk(KERN_ERR, &pdev->dev, "Cannot obtain PCI resources, " | 4912 | dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting.\n"); |
4914 | "aborting.\n"); | ||
4915 | goto err_out_free_netdev; | 4913 | goto err_out_free_netdev; |
4916 | } | 4914 | } |
4917 | pci_set_master(pdev); | 4915 | pci_set_master(pdev); |
@@ -4941,7 +4939,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4941 | if (pci_write_config_byte(pdev, | 4939 | if (pci_write_config_byte(pdev, |
4942 | PCI_CACHE_LINE_SIZE, | 4940 | PCI_CACHE_LINE_SIZE, |
4943 | cas_cacheline_size)) { | 4941 | cas_cacheline_size)) { |
4944 | dev_printk(KERN_ERR, &pdev->dev, "Could not set PCI cache " | 4942 | dev_err(&pdev->dev, "Could not set PCI cache " |
4945 | "line size\n"); | 4943 | "line size\n"); |
4946 | goto err_write_cacheline; | 4944 | goto err_write_cacheline; |
4947 | } | 4945 | } |
@@ -4955,7 +4953,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4955 | err = pci_set_consistent_dma_mask(pdev, | 4953 | err = pci_set_consistent_dma_mask(pdev, |
4956 | DMA_64BIT_MASK); | 4954 | DMA_64BIT_MASK); |
4957 | if (err < 0) { | 4955 | if (err < 0) { |
4958 | dev_printk(KERN_ERR, &pdev->dev, "Unable to obtain 64-bit DMA " | 4956 | dev_err(&pdev->dev, "Unable to obtain 64-bit DMA " |
4959 | "for consistent allocations\n"); | 4957 | "for consistent allocations\n"); |
4960 | goto err_out_free_res; | 4958 | goto err_out_free_res; |
4961 | } | 4959 | } |
@@ -4963,7 +4961,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4963 | } else { | 4961 | } else { |
4964 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 4962 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
4965 | if (err) { | 4963 | if (err) { |
4966 | dev_printk(KERN_ERR, &pdev->dev, "No usable DMA configuration, " | 4964 | dev_err(&pdev->dev, "No usable DMA configuration, " |
4967 | "aborting.\n"); | 4965 | "aborting.\n"); |
4968 | goto err_out_free_res; | 4966 | goto err_out_free_res; |
4969 | } | 4967 | } |
@@ -5023,8 +5021,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
5023 | /* give us access to cassini registers */ | 5021 | /* give us access to cassini registers */ |
5024 | cp->regs = pci_iomap(pdev, 0, casreg_len); | 5022 | cp->regs = pci_iomap(pdev, 0, casreg_len); |
5025 | if (cp->regs == 0UL) { | 5023 | if (cp->regs == 0UL) { |
5026 | dev_printk(KERN_ERR, &pdev->dev, "Cannot map device registers, " | 5024 | dev_err(&pdev->dev, "Cannot map device registers, aborting.\n"); |
5027 | "aborting.\n"); | ||
5028 | goto err_out_free_res; | 5025 | goto err_out_free_res; |
5029 | } | 5026 | } |
5030 | cp->casreg_len = casreg_len; | 5027 | cp->casreg_len = casreg_len; |
@@ -5040,8 +5037,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
5040 | pci_alloc_consistent(pdev, sizeof(struct cas_init_block), | 5037 | pci_alloc_consistent(pdev, sizeof(struct cas_init_block), |
5041 | &cp->block_dvma); | 5038 | &cp->block_dvma); |
5042 | if (!cp->init_block) { | 5039 | if (!cp->init_block) { |
5043 | dev_printk(KERN_ERR, &pdev->dev, "Cannot allocate init block, " | 5040 | dev_err(&pdev->dev, "Cannot allocate init block, aborting.\n"); |
5044 | "aborting.\n"); | ||
5045 | goto err_out_iounmap; | 5041 | goto err_out_iounmap; |
5046 | } | 5042 | } |
5047 | 5043 | ||
@@ -5085,8 +5081,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
5085 | dev->features |= NETIF_F_HIGHDMA; | 5081 | dev->features |= NETIF_F_HIGHDMA; |
5086 | 5082 | ||
5087 | if (register_netdev(dev)) { | 5083 | if (register_netdev(dev)) { |
5088 | dev_printk(KERN_ERR, &pdev->dev, "Cannot register net device, " | 5084 | dev_err(&pdev->dev, "Cannot register net device, aborting.\n"); |
5089 | "aborting.\n"); | ||
5090 | goto err_out_free_consistent; | 5085 | goto err_out_free_consistent; |
5091 | } | 5086 | } |
5092 | 5087 | ||