]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi_device memory should be released instead of device.
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Mon, 12 Apr 2010 09:56:35 +0000 (09:56 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 28 Apr 2010 07:17:58 +0000 (01:17 -0600)
commite2b9958adcfaaec244dbbb7604f2627f6bd2e393
tree2ec9e6a6a9ea2aabfe38ac8109bbf6b381abf90e
parente9a5d76c8229341324fdf92c1528031a6b017b00
spi: spi_device memory should be released instead of device.

The memory for dev variable is allocated as a part of
spi_device structure memory which the dev belongs to.
Thus when the memory is released the right pointer is used.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c