OSDN Git Service

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)
commit12d0efb9e6d90e6ff5c94e46d1ea273a41e36454
treefed3ae11e5fc55c4c51419541efcee84e8943eea
parentbfd57b5900212acd5a14b9bea9ef49a5606d31a6
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