aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/atlx
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/atlx')
-rw-r--r--drivers/net/atlx/atl1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 240db847e12..5586fc62468 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -502,6 +502,7 @@ static s32 atl1_phy_leave_power_saving(struct atl1_hw *hw)
/*
*TODO: do something or get rid of this
*/
+#ifdef CONFIG_PM
static s32 atl1_phy_enter_power_saving(struct atl1_hw *hw)
{
/* s32 ret_val;
@@ -515,6 +516,7 @@ static s32 atl1_phy_enter_power_saving(struct atl1_hw *hw)
*/
return 0;
}
+#endif
/*
* Resets the PHY and make all config validate
@@ -2342,15 +2344,12 @@ static irqreturn_t atl1_intr(int irq, void *data)
{
struct atl1_adapter *adapter = netdev_priv(data);
u32 status;
- u8 update_rx;
int max_ints = 10;
status = adapter->cmb.cmb->int_stats;
if (!status)
return IRQ_NONE;
- update_rx = 0;
-
do {
/* clear CMB interrupt status at once */
adapter->cmb.cmb->int_stats = 0;