aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-08 10:21:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-08 10:21:12 +0000
commite2d3cb69a11cf3b29ccc907982a0a23f062b2b8a (patch)
tree692c26b666d8f1f46688e2aeec84bf4fca7db33d /target/linux
parent291e2dd5838829a5fa90af53bb4aded9541192b2 (diff)
downloadupstream-e2d3cb69a11cf3b29ccc907982a0a23f062b2b8a.tar.gz
upstream-e2d3cb69a11cf3b29ccc907982a0a23f062b2b8a.tar.bz2
upstream-e2d3cb69a11cf3b29ccc907982a0a23f062b2b8a.zip
generic: ar8216: don't use static variable in ar8236_hw_init
SVN-Revision: 30856
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c5
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;
}