]> 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)
commit127d3926408efc3c2152e3bccf16de852b59e1c3
tree1e120b446b4693b5b2e7240c99e6e97a131b3d86
parent2275afed27a1095276f86697e1b8a9336980783c
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