aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2008-02-06 04:36:20 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:01 -0500
commit15aafa2f9d8399b22e418c53a87dfc0c43f4030f (patch)
tree7861111fb87f4f69e496901d8883d0b796521255 /drivers/serial
parentbcfbf84d4067674b0740a39605f8057622ad5230 (diff)
Remove pointless casts from void pointers
Mostly in and around irq handlers. Signed-off-by: Jeff Garzik <jgarzik@redhat.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: "Luck Tony" <tony.luck@intel.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Dmitry Torokhov <dtor@mail.ru> Cc: Karsten Keil <kkeil@suse.de> Acked-by: "John W. Linville" <linville@tuxdriver.com> Cc: James Bottomley <James.Bottomley@steeleye.com> Cc: David Brownell <david-b@pacbell.net> Cc: "Antonino A. Daplas" <adaplas@pol.net> Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/cpm_uart/cpm_uart_core.c2
-rw-r--r--drivers/serial/dz.c2
-rw-r--r--drivers/serial/imx.c4
-rw-r--r--drivers/serial/uartlite.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c
index b5e4478de0e3..236af9d33851 100644
--- a/drivers/serial/cpm_uart/cpm_uart_core.c
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c
@@ -380,7 +380,7 @@ static void cpm_uart_int_rx(struct uart_port *port)
380static irqreturn_t cpm_uart_int(int irq, void *data) 380static irqreturn_t cpm_uart_int(int irq, void *data)
381{ 381{
382 u8 events; 382 u8 events;
383 struct uart_port *port = (struct uart_port *)data; 383 struct uart_port *port = data;
384 struct uart_cpm_port *pinfo = (struct uart_cpm_port *)port; 384 struct uart_cpm_port *pinfo = (struct uart_cpm_port *)port;
385 smc_t __iomem *smcp = pinfo->smcp; 385 smc_t __iomem *smcp = pinfo->smcp;
386 scc_t __iomem *sccp = pinfo->sccp; 386 scc_t __iomem *sccp = pinfo->sccp;
diff --git a/drivers/serial/dz.c b/drivers/serial/dz.c
index d31721f2744d..bbae5a220219 100644
--- a/drivers/serial/dz.c
+++ b/drivers/serial/dz.c
@@ -324,7 +324,7 @@ static inline void check_modem_status(struct dz_port *dport)
324 */ 324 */
325static irqreturn_t dz_interrupt(int irq, void *dev) 325static irqreturn_t dz_interrupt(int irq, void *dev)
326{ 326{
327 struct dz_port *dport = (struct dz_port *)dev; 327 struct dz_port *dport = dev;
328 unsigned short status; 328 unsigned short status;
329 329
330 /* get the reason why we just got an irq */ 330 /* get the reason why we just got an irq */
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c
index dc1967176fe2..56af1f566a4c 100644
--- a/drivers/serial/imx.c
+++ b/drivers/serial/imx.c
@@ -308,7 +308,7 @@ static void imx_start_tx(struct uart_port *port)
308 308
309static irqreturn_t imx_rtsint(int irq, void *dev_id) 309static irqreturn_t imx_rtsint(int irq, void *dev_id)
310{ 310{
311 struct imx_port *sport = (struct imx_port *)dev_id; 311 struct imx_port *sport = dev_id;
312 unsigned int val = readl(sport->port.membase + USR1) & USR1_RTSS; 312 unsigned int val = readl(sport->port.membase + USR1) & USR1_RTSS;
313 unsigned long flags; 313 unsigned long flags;
314 314
@@ -324,7 +324,7 @@ static irqreturn_t imx_rtsint(int irq, void *dev_id)
324 324
325static irqreturn_t imx_txint(int irq, void *dev_id) 325static irqreturn_t imx_txint(int irq, void *dev_id)
326{ 326{
327 struct imx_port *sport = (struct imx_port *)dev_id; 327 struct imx_port *sport = dev_id;
328 struct circ_buf *xmit = &sport->port.info->xmit; 328 struct circ_buf *xmit = &sport->port.info->xmit;
329 unsigned long flags; 329 unsigned long flags;
330 330
diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c
index 80943409edb0..bacf68dca01a 100644
--- a/drivers/serial/uartlite.c
+++ b/drivers/serial/uartlite.c
@@ -142,7 +142,7 @@ static int ulite_transmit(struct uart_port *port, int stat)
142 142
143static irqreturn_t ulite_isr(int irq, void *dev_id) 143static irqreturn_t ulite_isr(int irq, void *dev_id)
144{ 144{
145 struct uart_port *port = (struct uart_port *)dev_id; 145 struct uart_port *port = dev_id;
146 int busy; 146 int busy;
147 147
148 do { 148 do {