aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r--drivers/net/phy/phy.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 33cec2dab94..f5aad77288f 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -14,7 +14,6 @@
14 * option) any later version. 14 * option) any later version.
15 * 15 *
16 */ 16 */
17#include <linux/config.h>
18#include <linux/kernel.h> 17#include <linux/kernel.h>
19#include <linux/sched.h> 18#include <linux/sched.h>
20#include <linux/string.h> 19#include <linux/string.h>
@@ -420,9 +419,8 @@ void phy_start_machine(struct phy_device *phydev,
420 419
421/* phy_stop_machine 420/* phy_stop_machine
422 * 421 *
423 * description: Stops the state machine timer, sets the state to 422 * description: Stops the state machine timer, sets the state to UP
424 * UP (unless it wasn't up yet), and then frees the interrupt, 423 * (unless it wasn't up yet). This function must be called BEFORE
425 * if it is in use. This function must be called BEFORE
426 * phy_detach. 424 * phy_detach.
427 */ 425 */
428void phy_stop_machine(struct phy_device *phydev) 426void phy_stop_machine(struct phy_device *phydev)
@@ -434,9 +432,6 @@ void phy_stop_machine(struct phy_device *phydev)
434 phydev->state = PHY_UP; 432 phydev->state = PHY_UP;
435 spin_unlock(&phydev->lock); 433 spin_unlock(&phydev->lock);
436 434
437 if (phydev->irq != PHY_POLL)
438 phy_stop_interrupts(phydev);
439
440 phydev->adjust_state = NULL; 435 phydev->adjust_state = NULL;
441} 436}
442 437
@@ -557,7 +552,7 @@ int phy_start_interrupts(struct phy_device *phydev)
557 INIT_WORK(&phydev->phy_queue, phy_change, phydev); 552 INIT_WORK(&phydev->phy_queue, phy_change, phydev);
558 553
559 if (request_irq(phydev->irq, phy_interrupt, 554 if (request_irq(phydev->irq, phy_interrupt,
560 SA_SHIRQ, 555 IRQF_SHARED,
561 "phy_interrupt", 556 "phy_interrupt",
562 phydev) < 0) { 557 phydev) < 0) {
563 printk(KERN_WARNING "%s: Can't get IRQ %d (PHY)\n", 558 printk(KERN_WARNING "%s: Can't get IRQ %d (PHY)\n",