summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_imx.c
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-02-20 22:58:19 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-21 02:10:16 +0100
commitbb2d1c36c7f3a78d482622289c8de0c1a5fe790f (patch)
tree1bb4dc9b173f500b4a130c05eae8ad080699597a /drivers/spi/spi_imx.c
parent[PATCH] parport_pc: fix parport_pc_probe_port section warning (diff)
downloadlinux-bb2d1c36c7f3a78d482622289c8de0c1a5fe790f.tar.xz
linux-bb2d1c36c7f3a78d482622289c8de0c1a5fe790f.zip
[PATCH] SPI controller build/warning fixes
The signature of the per-device cleanup() routine changed to remove its const-ness. Three new SPI controller drivers now need that change, to eliminate build warnings. This also fixes a build bug with atmel_spi on AT91 systems. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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:
return status;
}
-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);
- kfree(chip);
+ kfree(spi_get_ctldata(spi));
}
static int init_queue(struct driver_data *drv_data)