summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/mv88e6352.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-03-27 01:36:40 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-03-29 20:23:55 (GMT)
commita8f064c602cf0170d41274e173a26151d7520dbe (patch)
tree442ac04394feddbab1b7624639a97819da61ef7e /drivers/net/dsa/mv88e6352.c
parent4f431e56625761b1d81a4a6544fda92c02bed917 (diff)
downloadlinux-a8f064c602cf0170d41274e173a26151d7520dbe.tar.xz
net: dsa: Centralise getting switch id
Get the switch id and save it away in the private mv88x6xxx structure in a centralised piece of code, rather than each driver doing it itself. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6352.c')
-rw-r--r--drivers/net/dsa/mv88e6352.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c
index 7285bd0..41fe3a6 100644
--- a/drivers/net/dsa/mv88e6352.c
+++ b/drivers/net/dsa/mv88e6352.c
@@ -369,8 +369,6 @@ static int mv88e6352_setup(struct dsa_switch *ds)
mutex_init(&ps->eeprom_mutex);
- ps->id = REG_READ(REG_PORT(0), 0x03) & 0xfff0;
-
ret = mv88e6352_switch_reset(ds);
if (ret < 0)
return ret;