OSDN Git Service

r8169: move common initializations to tp->hw_start
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 28 Apr 2018 20:19:47 +0000 (22:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Apr 2018 13:38:20 +0000 (09:38 -0400)
commit4fd48c4ac0a0578862819295222a825c97686ac7
tree66ef19fcb60ebf4a72905a03563b1f0a178d47b4
parent82d3ff6dd1994d54fe11714ffd4c696cfcacbea1
r8169: move common initializations to tp->hw_start

The chip-specific init code includes quite some calls which are
identical for all chips. So move these calls to tp->hw_start().

In addition move rtl_set_rx_max_size() a little to make sure it's
defined before it's used. Unfortunately the diff generated by git
is a little bit hard to read.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c