]> Git Repo - linux.git/commit
net: stmmac: Allocate and pass soc/board specific data to callbacks
authorChen-Yu Tsai <[email protected]>
Fri, 17 Jan 2014 13:24:42 +0000 (21:24 +0800)
committerDavid S. Miller <[email protected]>
Mon, 20 Jan 2014 04:02:02 +0000 (20:02 -0800)
commit938dfdaa3c0f92e9a490d324f3bce43bbaef7632
treeda3396dd24faaa4898790d3e995bfb7ecb5ea0fb
parentc5e4ddbdfa1134a36589c1466ed4abb85fe6f976
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Documentation/networking/stmmac.txt
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h
This page took 0.058985 seconds and 4 git commands to generate.