summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-02-18 12:44:40 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-02-18 14:47:20 +0000
commit93b760b7072ca6972c15c798e97af3f830d8bbba (patch)
tree6d7b4209348049b81ed6927b469618d36b583dde /sound
parentfc9967576829a01c98e5388410dc12c61006f79f (diff)
downloadop-kernel-dev-93b760b7072ca6972c15c798e97af3f830d8bbba.zip
op-kernel-dev-93b760b7072ca6972c15c798e97af3f830d8bbba.tar.gz
ASoC: Implement SPI device unregistration for WM8731
Completely untested. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8731.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index a2c478e..4191bdb 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -655,12 +655,17 @@ static int __devinit wm8731_spi_probe(struct spi_device *spi)
codec->hw_write = (hw_write_t)wm8731_spi_write;
codec->dev = &spi->dev;
+ spi->dev.driver_data = wm8731;
+
return wm8731_register(wm8731);
}
static int __devexit wm8731_spi_remove(struct spi_device *spi)
{
- /* FIXME: This isn't actually implemented... */
+ struct wm8731_priv *wm8731 = spi->dev.driver_data;
+
+ wm8731_unregister(wm8731);
+
return 0;
}
OpenPOWER on IntegriCloud