diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-12-12 11:20:09 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-12-12 11:20:09 +0100 |
commit | 50b030a676a9945611de1dc329a7dfb14d7aaceb (patch) | |
tree | ba3578af262776c5bacaa3fb08ab0efa933df8a3 | |
parent | 88311602452e16d2b3a55b1434122d93ec10a388 (diff) |
net: xilinx: emaclite: Remove net_device pointer from struct net_localemaclite-cleanup
There's only a few places left where the net_device back-pointer from
struct net_local is used, so we can reduce the private struct size by
removing it.
Remove it entirely by using the net_device already passed to the
function in question and by storing the net_device pointer instead of
the net_local pointer in mii_bus->priv.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c |