spi: efm32: Don't call kfree() after spi_master_put()
authorAxel Lin <axel.lin@ingics.com>
Fri, 20 Sep 2013 10:39:18 +0000 (18:39 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 23 Sep 2013 13:53:10 +0000 (14:53 +0100)
commit57841439b62e3ddb5ee50e765aa50330dde612d0
treea9d2cb93e4dd40deeaa55ac8fdb26862c44aa9f1
parent272b98c6455f00884f0350f775c5342358ebb73f
spi: efm32: Don't call kfree() after spi_master_put()

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-efm32.c