Commit 59bdb293 authored by Manuel Lauss's avatar Manuel Lauss Committed by David S. Miller

net: irda: au1k_ir: remove unused timer

remove the unused timer.  I suppose it was intended as a timeout
detector, but never properly implemented.
Signed-off-by: default avatarManuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e57fbb2
...@@ -169,8 +169,6 @@ struct au1k_private { ...@@ -169,8 +169,6 @@ struct au1k_private {
u32 speed; u32 speed;
u32 newspeed; u32 newspeed;
struct timer_list timer;
struct resource *ioarea; struct resource *ioarea;
struct au1k_irda_platform_data *platdata; struct au1k_irda_platform_data *platdata;
struct clk *irda_clk; struct clk *irda_clk;
...@@ -178,8 +176,6 @@ struct au1k_private { ...@@ -178,8 +176,6 @@ struct au1k_private {
static int qos_mtt_bits = 0x07; /* 1 ms or more */ static int qos_mtt_bits = 0x07; /* 1 ms or more */
#define RUN_AT(x) (jiffies + (x))
static void au1k_irda_plat_set_phy_mode(struct au1k_private *p, int mode) static void au1k_irda_plat_set_phy_mode(struct au1k_private *p, int mode)
{ {
if (p->platdata && p->platdata->set_phy_mode) if (p->platdata && p->platdata->set_phy_mode)
...@@ -620,8 +616,6 @@ static int au1k_irda_start(struct net_device *dev) ...@@ -620,8 +616,6 @@ static int au1k_irda_start(struct net_device *dev)
/* power up */ /* power up */
au1k_irda_plat_set_phy_mode(aup, AU1000_IRDA_PHY_MODE_SIR); au1k_irda_plat_set_phy_mode(aup, AU1000_IRDA_PHY_MODE_SIR);
aup->timer.expires = RUN_AT((3 * HZ));
aup->timer.data = (unsigned long)dev;
return 0; return 0;
} }
...@@ -642,7 +636,6 @@ static int au1k_irda_stop(struct net_device *dev) ...@@ -642,7 +636,6 @@ static int au1k_irda_stop(struct net_device *dev)
} }
netif_stop_queue(dev); netif_stop_queue(dev);
del_timer(&aup->timer);
/* disable the interrupt */ /* disable the interrupt */
free_irq(aup->irq_tx, dev); free_irq(aup->irq_tx, dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment