net: irda: au1k_ir: remove unused timer
Subsystems (2)
PATCH 1/2 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 Manuel Lauss <[email protected]>
--- drivers/net/irda/au1k_ir.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/net/irda/au1k_ir.c +0 -7
@@ -169,8 +169,6 @@ struct au1k_private {u32 speed;u32 newspeed; -struct timer_list timer; -struct resource *ioarea;struct au1k_irda_platform_data *platdata;struct clk *irda_clk;
@@ -178,8 +176,6 @@ struct au1k_private {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) {if (p->platdata && p->platdata->set_phy_mode)
@@ -620,8 +616,6 @@ static int au1k_irda_start(struct net_device *dev)/* power up */ 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 ; }
@@ -642,7 +636,6 @@ static int au1k_irda_stop(struct net_device *dev) }netif_stop_queue (dev); -del_timer (&aup->timer);/* disable the interrupt */ free_irq (aup->irq_tx, dev);
Signature · 1 line
2.11.1
PATCH 2/2 net: irda: au1k_ir: drop useless include
remove useless ioport.h include.
Signed-off-by Manuel Lauss <[email protected]>
--- drivers/net/irda/au1k_ir.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/irda/au1k_ir.c +0 -1
@@ -25,7 +25,6 @@#include <linux/platform_device.h> #include <linux/slab.h> #include <linux/types.h> -#include <linux/ioport.h> #include <net/irda/irda.h> #include <net/irda/irmod.h>
Signature · 1 line
2.11.1
David Miller
maintainerRe: [PATCH 2/2] net: irda: au1k_ir: drop useless include
From: Manuel Lauss <[email protected]>
Date: Tue, 14 Feb 2017 13:08:04 +0100
Quoted 3 lines
remove useless
ioport.hinclude.Signed-off-by Manuel Lauss <[email protected]>
Also applied to net-next, thanks.
From: Manuel Lauss <[email protected]>
Date: Tue, 14 Feb 2017 13:08:03 +0100
Quoted 4 lines
remove the unused timer. I suppose it was intended as a timeout detector, but never properly implemented.
Signed-off-by Manuel Lauss <[email protected]>
Applied to net-next.