]> err.no Git - linux-2.6/commitdiff
[ARM] Remove pointless casts from void pointers,
authorJeff Garzik <jeff@garzik.org>
Fri, 26 Oct 2007 09:40:22 +0000 (05:40 -0400)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 14:50:00 +0000 (14:50 +0000)
mostly in and around irq handlers.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/ssp.c
arch/arm/mach-s3c2410/usb-simtec.c
arch/arm/plat-omap/mailbox.c
sound/oss/waveartist.c

index 422afee88169414dbd5cb74f57f481b7cbc240e5..b2eb38543d1c3e4b73890e3af0053357a550cfab 100644 (file)
@@ -67,7 +67,7 @@ static int use_count[PXA_SSP_PORTS] = {0, 0, 0};
 
 static irqreturn_t ssp_interrupt(int irq, void *dev_id)
 {
-       struct ssp_dev *dev = (struct ssp_dev*) dev_id;
+       struct ssp_dev *dev = dev_id;
        unsigned int status = SSSR_P(dev->port);
 
        SSSR_P(dev->port) = status; /* clear status bits */
index bcd562ac1d3da4899dca3b73ac3e9184e6c2d55e..6aec86a5da56aac0ca0a88ac0c97ebaec6a86712 100644 (file)
@@ -60,7 +60,7 @@ usb_simtec_powercontrol(int port, int to)
 static irqreturn_t
 usb_simtec_ocirq(int irq, void *pw)
 {
-       struct s3c2410_hcd_info *info = (struct s3c2410_hcd_info *)pw;
+       struct s3c2410_hcd_info *info = pw;
 
        if (s3c2410_gpio_getpin(S3C2410_GPG10) == 0) {
                pr_debug("usb_simtec: over-current irq (oc detected)\n");
index 0360b1f14d11f0c0dc3d3333c8a29b1fc53cf594..45a77df668f12b876bde36f9a95ee1c1c23c38aa 100644 (file)
@@ -212,7 +212,7 @@ static void __mbox_rx_interrupt(struct omap_mbox *mbox)
 
 static irqreturn_t mbox_interrupt(int irq, void *p)
 {
-       struct omap_mbox *mbox = (struct omap_mbox *)p;
+       struct omap_mbox *mbox = p;
 
        if (is_mbox_irq(mbox, IRQ_TX))
                __mbox_tx_interrupt(mbox);
index b48c72923a13dfb30c35669213112a31baa4ffc2..88490418f9325fea8424e00e1ff54ee811e87230 100644 (file)
@@ -835,7 +835,7 @@ static struct audio_driver waveartist_audio_driver = {
 static irqreturn_t
 waveartist_intr(int irq, void *dev_id)
 {
-       wavnc_info *devc = (wavnc_info *)dev_id;
+       wavnc_info *devc = dev_id;
        int        irqstatus, status;
 
        spin_lock(&waveartist_lock);