]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: add chip allocation helper
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 20 Jun 2016 17:14:06 +0000 (13:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 07:58:29 +0000 (03:58 -0400)
commitd00aa6033fb68344c0b6a7ae7bcc25c5eebcfb45
tree1e120b446b4693b5b2e7240c99e6e97a131b3d86
parent3b2c5b99b445a38728fda0ccd6c723e8c17ce701
net: dsa: mv88e6xxx: add chip allocation helper

Add an helper function to allocate the chip structure at the beginning
of the probe functions. It will be used to initialize the SMI access.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c