spi: au1550: Fix bug in deallocation of memory
authorHimangi Saraogi <himangi774@gmail.com>
Fri, 4 Jul 2014 17:39:49 +0000 (23:09 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 4 Jul 2014 18:33:40 +0000 (19:33 +0100)
commit30670539b867d08c1931abd4815699de5887ee58
treea7cb9c796e98e3c55663f82f3473707512b12356
parent7171511eaec5bf23fb06078f59784a3a0626b38f
spi: au1550: Fix bug in deallocation of memory

This patch fixes a bug on the deallocation of memory allocated using
request_mem_region, by using release_mem_region instead of
release_resource and kfree.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-au1550.c