diff options
Diffstat (limited to 'drivers/spi/pxa2xx_spi.c')
-rw-r--r-- | drivers/spi/pxa2xx_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c index 8b41f9cc2560..9f2c887ffa04 100644 --- a/drivers/spi/pxa2xx_spi.c +++ b/drivers/spi/pxa2xx_spi.c | |||
@@ -1214,9 +1214,9 @@ static int setup(struct spi_device *spi) | |||
1214 | return 0; | 1214 | return 0; |
1215 | } | 1215 | } |
1216 | 1216 | ||
1217 | static void cleanup(const struct spi_device *spi) | 1217 | static void cleanup(struct spi_device *spi) |
1218 | { | 1218 | { |
1219 | struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi); | 1219 | struct chip_data *chip = spi_get_ctldata(spi); |
1220 | 1220 | ||
1221 | kfree(chip); | 1221 | kfree(chip); |
1222 | } | 1222 | } |