Changeset 30856


Ignore:
Timestamp:
2012-03-08T11:21:12+01:00 (6 years ago)
Author:
juhosg
Message:

generic: ar8216: don't use static variable in ar8236_hw_init

File:
1 edited

Legend:

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

    r30855 r30856  
    651651static int 
    652652ar8236_hw_init(struct ar8216_priv *priv) { 
    653         static int initialized; 
    654653        int i; 
    655654        struct mii_bus *bus; 
    656655 
    657         if (initialized) 
     656        if (priv->initialized) 
    658657                return 0; 
    659658 
     
    672671                   AR8316_GCTRL_MTU, 9018 + 8 + 2); 
    673672 
    674         initialized = true; 
     673        priv->initialized = true; 
    675674        return 0; 
    676675} 
Note: See TracChangeset for help on using the changeset viewer.