]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/spi/pxa2xx_spi.c
Merge ARM fixes
[linux-2.6-omap-h63xx.git] / drivers / spi / pxa2xx_spi.c
index 8b41f9cc2560f9a2a3c94711eed6aa61e85fd409..9f2c887ffa0466cf8d30105ed1ee6d5860fa29f4 100644 (file)
@@ -1214,9 +1214,9 @@ static int setup(struct spi_device *spi)
        return 0;
 }
 
-static void cleanup(const struct spi_device *spi)
+static void cleanup(struct spi_device *spi)
 {
-       struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi);
+       struct chip_data *chip = spi_get_ctldata(spi);
 
        kfree(chip);
 }