-
- Downloads
net: stmmac: Allocate and pass soc/board specific data to callbacks
The current .init and .exit callbacks requires access to driver private data structures. This is not a good seperation and abstraction. Instead, we add a new .setup callback for allocating private data, and pass the returned pointer to the other callbacks. Signed-off-by:Chen-Yu Tsai <wens@csie.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/stmmac.txt 8 additions, 4 deletionsDocumentation/networking/stmmac.txt
- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 14 additions, 4 deletionsdrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
- include/linux/stmmac.h 4 additions, 2 deletionsinclude/linux/stmmac.h
Loading
Please register or sign in to comment