diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-08 10:21:12 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-03-08 10:21:12 +0000 |
commit | 6808474a82a88c55078cc3849e830a6652c023d7 (patch) | |
tree | 1cea46c6685b8a64fe68a6fd39bef9b946d7b81e /target/linux/generic | |
parent | 3f153edf0842da42a39cf4fe9ee4d34ea3d07503 (diff) | |
download | upstream-6808474a82a88c55078cc3849e830a6652c023d7.tar.gz upstream-6808474a82a88c55078cc3849e830a6652c023d7.tar.bz2 upstream-6808474a82a88c55078cc3849e830a6652c023d7.zip |
generic: ar8216: don't use static variable in ar8236_hw_init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30856 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 34322ddc3f..ba9bca03d9 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -650,11 +650,10 @@ ar8216_hw_init(struct ar8216_priv *priv) static int ar8236_hw_init(struct ar8216_priv *priv) { - static int initialized; int i; struct mii_bus *bus; - if (initialized) + if (priv->initialized) return 0; /* Initialize the PHYs */ @@ -671,7 +670,7 @@ ar8236_hw_init(struct ar8216_priv *priv) { ar8216_rmw(priv, AR8216_REG_GLOBAL_CTRL, AR8316_GCTRL_MTU, 9018 + 8 + 2); - initialized = true; + priv->initialized = true; return 0; } |