]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Centralise getting switch id
authorAndrew Lunn <andrew@lunn.ch>
Fri, 27 Mar 2015 01:36:40 +0000 (18:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2015 20:23:55 +0000 (13:23 -0700)
commit1df2a3baff8198b74c36ac2a8ecd6392fdd91b13
tree442ac04394feddbab1b7624639a97819da61ef7e
parent731ebcead85c80b3bc14142b54fea7edcfc98701
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>
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c