[PATCH] wm8753: unregister I2C device (backport from upstream)

Paul Fertser fercerpav at gmail.com
Tue Feb 17 01:19:03 CET 2009


This is the last change necessary to be able to load/unload all sound
modules on Neo FreeRunner.

Signed-off-by: Paul Fertser <fercerpav at gmail.com>
---
 sound/soc/codecs/wm8753.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index 650a450..8dbf608 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -1887,6 +1887,7 @@ static int wm8753_remove(struct platform_device *pdev)
 	snd_soc_dapm_free(socdev);
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
 	if (setup->i2c_address) {
+		i2c_unregister_device(codec->control_data);
 		i2c_del_driver(&wm8753_i2c_driver);
 	}
 #endif
-- 
1.5.2.2




More information about the openmoko-kernel mailing list