Changeset 35538


Ignore:
Timestamp:
2013-02-10T14:05:15+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: don't probe the chip multiple times

It is only needed when the private data is allocated.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r35537 r35538  
    17811781                if (priv == NULL) 
    17821782                        return -ENOMEM; 
    1783         } 
    1784  
    1785         priv->mii_bus = pdev->bus; 
    1786         priv->read = ar8216_mii_read; 
    1787         priv->write = ar8216_mii_write; 
     1783 
     1784                priv->mii_bus = pdev->bus; 
     1785                priv->read = ar8216_mii_read; 
     1786                priv->write = ar8216_mii_write; 
     1787 
     1788                ret = ar8216_id_chip(priv); 
     1789                if (ret) 
     1790                        goto err_free_priv; 
     1791        } 
    17881792 
    17891793        priv->phy = pdev; 
    1790  
    1791         ret = ar8216_id_chip(priv); 
    1792         if (ret) 
    1793                 goto err_free_priv; 
    17941794 
    17951795        if (ar8xxx_has_gige(priv)) 
Note: See TracChangeset for help on using the changeset viewer.