projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291e2dd
)
generic: ar8216: don't use static variable in ar8236_hw_init
author
Gabor Juhos
<juhosg@openwrt.org>
Thu, 8 Mar 2012 10:21:12 +0000
(10:21 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Thu, 8 Mar 2012 10:21:12 +0000
(10:21 +0000)
SVN-Revision: 30856
target/linux/generic/files/drivers/net/phy/ar8216.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/ar8216.c
b/target/linux/generic/files/drivers/net/phy/ar8216.c
index 34322ddc3f58d3fc1fcca70a794ab5dee3319a3f..ba9bca03d99c40e15d8a1bfd240617c477b99967 100644
(file)
--- 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;
}