Blackfin SPI driver: tweak spi cleanup function to match newer kernel changes
authorMike Frysinger <michael.frysinger@analog.com>
Mon, 11 Jun 2007 07:31:30 +0000 (15:31 +0800)
committerBryan Wu <bryan.wu@analog.com>
Mon, 11 Jun 2007 07:31:30 +0000 (15:31 +0800)
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
drivers/spi/spi_bfin5xx.c

index 7d2d9ec6cac31ac3aac880027041427a9a6dbdb3..a2d4884752efb4a46f97b2d9fb743d9ce69dee2d 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);
 }