aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-08 15:49:28 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 10:37:56 -0500
commit6a7f4911a470fede7d40746487fb1e4a95657efd (patch)
treee6f44767ca7341a0572b23e52f417a698be3f157 /drivers/net/irda
parent26f2bee1a3063ddd89f76a75b99adb32636f3513 (diff)
NET: sa11x0-ir: get rid of si->hscr0
si->hscr0 is initialized to zero, and never changed. Get rid of this redundant variable. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/sa1100_ir.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c
index 0b5a2e2a7be..d428dd0a8bc 100644
--- a/drivers/net/irda/sa1100_ir.c
+++ b/drivers/net/irda/sa1100_ir.c
@@ -50,7 +50,6 @@ struct sa1100_buf {
50}; 50};
51 51
52struct sa1100_irda { 52struct sa1100_irda {
53 unsigned char hscr0;
54 unsigned char utcr4; 53 unsigned char utcr4;
55 unsigned char power; 54 unsigned char power;
56 unsigned char open; 55 unsigned char open;
@@ -124,14 +123,14 @@ static void sa1100_irda_rx_dma_start(struct sa1100_irda *si)
124 /* 123 /*
125 * First empty receive FIFO 124 * First empty receive FIFO
126 */ 125 */
127 Ser2HSCR0 = si->hscr0 | HSCR0_HSSP; 126 Ser2HSCR0 = HSCR0_HSSP;
128 127
129 /* 128 /*
130 * Enable the DMA, receiver and receive interrupt. 129 * Enable the DMA, receiver and receive interrupt.
131 */ 130 */
132 sa1100_clear_dma(si->dma_rx.regs); 131 sa1100_clear_dma(si->dma_rx.regs);
133 sa1100_start_dma(si->dma_rx.regs, si->dma_rx.dma, HPSIR_MAX_RXLEN); 132 sa1100_start_dma(si->dma_rx.regs, si->dma_rx.dma, HPSIR_MAX_RXLEN);
134 Ser2HSCR0 = si->hscr0 | HSCR0_HSSP | HSCR0_RXE; 133 Ser2HSCR0 = HSCR0_HSSP | HSCR0_RXE;
135} 134}
136 135
137static void sa1100_irda_check_speed(struct sa1100_irda *si) 136static void sa1100_irda_check_speed(struct sa1100_irda *si)
@@ -338,7 +337,7 @@ static int sa1100_irda_fir_tx_start(struct sk_buff *skb, struct net_device *dev,
338 if (mtt) 337 if (mtt)
339 udelay(mtt); 338 udelay(mtt);
340 339
341 Ser2HSCR0 = si->hscr0 | HSCR0_HSSP | HSCR0_TXE; 340 Ser2HSCR0 = HSCR0_HSSP | HSCR0_TXE;
342 341
343 return NETDEV_TX_OK; 342 return NETDEV_TX_OK;
344} 343}
@@ -440,7 +439,7 @@ static irqreturn_t sa1100_irda_fir_irq(struct net_device *dev, struct sa1100_ird
440 /* 439 /*
441 * Clear out the DMA... 440 * Clear out the DMA...
442 */ 441 */
443 Ser2HSCR0 = si->hscr0 | HSCR0_HSSP; 442 Ser2HSCR0 = HSCR0_HSSP;
444 443
445 /* 444 /*
446 * Clear selected status bits now, so we 445 * Clear selected status bits now, so we
@@ -513,10 +512,8 @@ static int sa1100_irda_set_speed(struct sa1100_irda *si, int speed)
513 case 4000000: 512 case 4000000:
514 local_irq_save(flags); 513 local_irq_save(flags);
515 514
516 si->hscr0 = 0;
517
518 Ser2HSSR0 = 0xff; 515 Ser2HSSR0 = 0xff;
519 Ser2HSCR0 = si->hscr0 | HSCR0_HSSP; 516 Ser2HSCR0 = HSCR0_HSSP;
520 Ser2UTCR3 = 0; 517 Ser2UTCR3 = 0;
521 518
522 si->speed = speed; 519 si->speed = speed;