]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83640: Move the probe and remove methods around.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 26 Dec 2019 02:16:14 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 03:51:33 +0000 (19:51 -0800)
commit869f5e90bcd8c6ee0f457a41939a13a1ab41e889
treefed3ae11e5fc55c4c51419541efcee84e8943eea
parentaf34c864c2172de29a13f61159e3effd450ef67e
net: phy: dp83640: Move the probe and remove methods around.

An upcoming patch will change how the PHY time stamping functions are
registered with the networking stack, and adapting this driver would
entail adding forward declarations for four time stamping methods.
However, forward declarations are considered to be stylistic defects.
This patch avoids the issue by moving the probe and remove methods
immediately above the phy_driver interface structure.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c