diff options
-rw-r--r-- | src/drivers/net/phy/m88e1512/m88e1512.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/drivers/net/phy/m88e1512/m88e1512.c b/src/drivers/net/phy/m88e1512/m88e1512.c index f32991fcd5..5ce9b40c55 100644 --- a/src/drivers/net/phy/m88e1512/m88e1512.c +++ b/src/drivers/net/phy/m88e1512/m88e1512.c @@ -52,9 +52,6 @@ static void m88e1512_init(struct device *dev) clrsetbits16(®, LED_FUNC_CTRL_MASK, config->led_0_ctrl | (config->led_1_ctrl << 4) | (config->led_2_ctrl << 8)); mdio_write(dev, LED_FUNC_CTRL_REG, reg); - - /* Switch back to page 0. */ - switch_page(dev, 0); } /* INTn can be routed to LED[2] pin. */ @@ -68,10 +65,10 @@ static void m88e1512_init(struct device *dev) reg = mdio_read(dev, LED_TIMER_CTRL_REG); setbits16(®, LED_IRQ_ENABLE); mdio_write(dev, LED_TIMER_CTRL_REG, reg); - - /* Switch back to page 0. */ - switch_page(dev, 0); } + + /* Switch back to page 0. */ + switch_page(dev, 0); } struct device_operations m88e1512_ops = { |