diff options
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index e2c6896b92d2..934065dd6371 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <asm/irq.h> | 39 | #include <asm/irq.h> |
40 | #include <asm/uaccess.h> | 40 | #include <asm/uaccess.h> |
41 | 41 | ||
42 | static void phy_change(void *data); | ||
43 | static void phy_timer(unsigned long data); | 42 | static void phy_timer(unsigned long data); |
44 | 43 | ||
45 | /* Convenience function to print out the current phy status | 44 | /* Convenience function to print out the current phy status |
@@ -464,7 +463,6 @@ void phy_stop_machine(struct phy_device *phydev) | |||
464 | phydev->adjust_state = NULL; | 463 | phydev->adjust_state = NULL; |
465 | } | 464 | } |
466 | 465 | ||
467 | #ifdef CONFIG_PHYCONTROL | ||
468 | /* phy_error: | 466 | /* phy_error: |
469 | * | 467 | * |
470 | * Moves the PHY to the HALTED state in response to a read | 468 | * Moves the PHY to the HALTED state in response to a read |
@@ -479,6 +477,10 @@ void phy_error(struct phy_device *phydev) | |||
479 | spin_unlock(&phydev->lock); | 477 | spin_unlock(&phydev->lock); |
480 | } | 478 | } |
481 | 479 | ||
480 | #ifdef CONFIG_PHYCONTROL | ||
481 | |||
482 | static void phy_change(void *data); | ||
483 | |||
482 | /* phy_interrupt | 484 | /* phy_interrupt |
483 | * | 485 | * |
484 | * description: When a PHY interrupt occurs, the handler disables | 486 | * description: When a PHY interrupt occurs, the handler disables |
@@ -672,6 +674,8 @@ void phy_start(struct phy_device *phydev) | |||
672 | EXPORT_SYMBOL(phy_stop); | 674 | EXPORT_SYMBOL(phy_stop); |
673 | EXPORT_SYMBOL(phy_start); | 675 | EXPORT_SYMBOL(phy_start); |
674 | 676 | ||
677 | #endif /* CONFIG_PHYCONTROL */ | ||
678 | |||
675 | /* PHY timer which handles the state machine */ | 679 | /* PHY timer which handles the state machine */ |
676 | static void phy_timer(unsigned long data) | 680 | static void phy_timer(unsigned long data) |
677 | { | 681 | { |
@@ -859,4 +863,3 @@ static void phy_timer(unsigned long data) | |||
859 | mod_timer(&phydev->phy_timer, jiffies + PHY_STATE_TIME * HZ); | 863 | mod_timer(&phydev->phy_timer, jiffies + PHY_STATE_TIME * HZ); |
860 | } | 864 | } |
861 | 865 | ||
862 | #endif /* CONFIG_PHYCONTROL */ | ||