93f979ab53067feb049692d58dd5a781f618b6c3
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 413-phy-export-phy_start_machine-for-phylink.patch
1 From: Russell King <rmk+kernel@arm.linux.org.uk>
2 Date: Fri, 16 Oct 2015 12:18:41 +0100
3 Subject: [PATCH] phy: export phy_start_machine() for phylink
4
5 phylink will need phy_start_machine exported, so lets export it as a
6 GPL symbol. Documentation/networking/phy.txt indicates that this
7 should be a PHY API function.
8
9 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
10 Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
11 ---
12
13 --- a/drivers/net/phy/phy.c
14 +++ b/drivers/net/phy/phy.c
15 @@ -580,6 +580,7 @@ void phy_start_machine(struct phy_device
16 {
17 queue_delayed_work(system_power_efficient_wq, &phydev->state_queue, HZ);
18 }
19 +EXPORT_SYMBOL_GPL(phy_start_machine);
20
21 /**
22 * phy_trigger_machine - trigger the state machine to run