net: phy: at803x: move disable WOL to specific at8031 probe
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 8 Dec 2023 14:51:49 +0000 (15:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 10:34:27 +0000 (10:34 +0000)
commit6a3b8c573b5a152a6aa7a0b54c5e18b84c6ba6f5
tree4ecd97125d3bbdaafb5e6a427b0e11a8e33a6ca4
parentf8fdbf3389f44c7026f16e36cb1f2ff017f7f5b2
net: phy: at803x: move disable WOL to specific at8031 probe

Move the WOL disable call to specific at8031 probe to make at803x_probe
more generic and drop extra check for PHY ID.

Keep the same previous behaviour by first calling at803x_probe and then
disabling WOL.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c