aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_imx.c')
-rw-r--r--drivers/spi/spi_imx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 6ccf8a12a21d..51daa212c6b7 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -1361,10 +1361,9 @@ err_first_setup:
1361 return status; 1361 return status;
1362} 1362}
1363 1363
1364static void cleanup(const struct spi_device *spi) 1364static void cleanup(struct spi_device *spi)
1365{ 1365{
1366 struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi); 1366 kfree(spi_get_ctldata(spi));
1367 kfree(chip);
1368} 1367}
1369 1368
1370static int init_queue(struct driver_data *drv_data) 1369static int init_queue(struct driver_data *drv_data)