et131x.c (f81483aaeb59da530b286fe5d081e1705eb5c886) et131x.c (948f6b297f6df4abaac207768ca1b7f7a7f55ffb)
1/* Agere Systems Inc.
2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
3 *
4 * Copyright © 2005 Agere Systems Inc.
5 * All rights reserved.
6 * http://www.agere.com
7 *
8 * Copyright (c) 2011 Mark Einon <mark.einon@gmail.com>

--- 3900 unchanged lines hidden (view full) ---

3909 if (rc < 0) {
3910 dev_err(&pdev->dev, "Can't get PCI resources\n");
3911 goto err_disable;
3912 }
3913
3914 pci_set_master(pdev);
3915
3916 /* Check the DMA addressing support of this device */
1/* Agere Systems Inc.
2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs
3 *
4 * Copyright © 2005 Agere Systems Inc.
5 * All rights reserved.
6 * http://www.agere.com
7 *
8 * Copyright (c) 2011 Mark Einon <mark.einon@gmail.com>

--- 3900 unchanged lines hidden (view full) ---

3909 if (rc < 0) {
3910 dev_err(&pdev->dev, "Can't get PCI resources\n");
3911 goto err_disable;
3912 }
3913
3914 pci_set_master(pdev);
3915
3916 /* Check the DMA addressing support of this device */
3917 if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)) &&
3918 dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
3917 rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
3918 if (rc) {
3919 dev_err(&pdev->dev, "No usable DMA addressing method\n");
3919 dev_err(&pdev->dev, "No usable DMA addressing method\n");
3920 rc = -EIO;
3921 goto err_release_res;
3922 }
3923
3924 netdev = alloc_etherdev(sizeof(struct et131x_adapter));
3925 if (!netdev) {
3926 dev_err(&pdev->dev, "Couldn't alloc netdev struct\n");
3927 rc = -ENOMEM;
3928 goto err_release_res;

--- 132 unchanged lines hidden ---
3920 goto err_release_res;
3921 }
3922
3923 netdev = alloc_etherdev(sizeof(struct et131x_adapter));
3924 if (!netdev) {
3925 dev_err(&pdev->dev, "Couldn't alloc netdev struct\n");
3926 rc = -ENOMEM;
3927 goto err_release_res;

--- 132 unchanged lines hidden ---