spi: omap-100k: Fix memory leak
authorAxel Lin <axel.lin@ingics.com>
Sat, 29 Mar 2014 07:03:37 +0000 (15:03 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 29 Mar 2014 10:01:13 +0000 (10:01 +0000)
commitd1c18caace25aa8b6fcfe4dc78e96a031f1eab2d
treecbd1c6b5671e58a3353c469d920aac24702f82c2
parent31804f638ef213f78f4a5ee896c4226ba55ab415
spi: omap-100k: Fix memory leak

The memory allocated for cs is not freed anywhere.
Convert to use devm_kzalloc to fix the memory leak.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap-100k.c