]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: refactor probe to group common hw initialization
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Apr 2019 17:12:36 +0000 (20:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 21:11:49 +0000 (17:11 -0400)
commit8a7c9d2b28fa0e498401979fdceb1536913fdae9
tree7b2098fda59f2a14a454e301ca2563130904e023
parente9f9fefd6ab29e4b121dd399c14704b1566e5835
net: ethernet: ti: cpsw: refactor probe to group common hw initialization

Rework probe to group common hw initialization:
- group resources request at the beginning of the probe
- move net device initialization and registration at the end of the probe
- drop cpsw_slave_init
as preparation of refactoring of common hw initialization code to
separate function.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c