]> 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)
commit8bba5436cade541b95b775a9523129774ecb77a5
treefed3ae11e5fc55c4c51419541efcee84e8943eea
parentc93cf36c7c66eb5cdec02f25faa34956a8916e14
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