]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: clps711x: Don't call kfree() after spi_master_put/spi_unregister_master
authorAxel Lin <axel.lin@ingics.com>
Tue, 10 Sep 2013 02:19:29 +0000 (10:19 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 10 Sep 2013 10:28:22 +0000 (11:28 +0100)
commit9b4003a687abcf2fe25ba9073dd07345e4529183
tree15c3c27e6f723dbb713acb535e79b6c24c16e609
parent578739259875a93b1869d25cdf4a8bd963b7d0a7
spi: clps711x: Don't call kfree() after spi_master_put/spi_unregister_master

Calling kfree() to clean up the memory obtained from spi_alloc_master() is
wrong as this is done in spi_master_release() when spi_master->dev's refcount
reaches zero.

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