spi: fsl-dspi: Fix memory leak
authorAxel Lin <axel.lin@ingics.com>
Tue, 25 Mar 2014 01:19:05 +0000 (09:19 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 28 Mar 2014 11:47:43 +0000 (11:47 +0000)
commit0e0cd9ea8961b82947a40471080e7968b634820e
treeaddfdd3a33b73cd952c4e9357d1007da76bc6426
parentba811addff3d29d1ea9861dbfc06e8ef80714f94
spi: fsl-dspi: Fix memory leak

The memory allocated for chip 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-fsl-dspi.c