r8169: factor out disabling ALDPS
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 23 Jan 2019 19:39:09 +0000 (20:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 06:25:05 +0000 (22:25 -0800)
commitc46863ab8356f0eb4a27dd65a2dc368e41198ad3
treec502e3d8cee391eb312dc2c724a79c950bc053e6
parent949e7cea0cbccd7e2afc4b374e2be998b8fcef78
r8169: factor out disabling ALDPS

Chip versions from RTL8168g onward use the same sequence to disable
ALDPS (Advanced Link-Down Power Saving). So let's factor this out.

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