]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix DaVinci module unload error
authorKevin Hilman <khilman@deeprootsystems.com>
Fri, 13 Feb 2009 19:36:37 +0000 (11:36 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 13 Feb 2009 20:21:30 +0000 (20:21 +0000)
commit40e56639ec2cc7f82acf4fee79bbce60bd4629f4
treeaabfddb8276b8ea3ab0653633716d8ad395870fe
parent105d7c035a128b8c1abadcee3c55b3282426ec03
ASoC: Fix DaVinci module unload error

Fix for the error when the audio module is unloaded.  On unregistering
the platform_device, platform_device_release will free the platform
data.If platform data is static the kernel panics when it is freed.
Instead use the platform device helper function to add data.

This change has been tested on DM644x EVM, DM644x SFFSDR and DM355 EVM.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-evm.c
sound/soc/davinci/davinci-sffsdr.c