Blackfin SPI driver: tweak spi cleanup function to match newer kernel changes
[powerpc.git] / drivers / spi / spi_bfin5xx.c
index 7d2d9ec..a2d4884 100644 (file)
@@ -1082,7 +1082,7 @@ static int setup(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);
 }