aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a2c478e53d5..4191bdb803b 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)
655 codec->hw_write = (hw_write_t)wm8731_spi_write; 655 codec->hw_write = (hw_write_t)wm8731_spi_write;
656 codec->dev = &spi->dev; 656 codec->dev = &spi->dev;
657 657
658 spi->dev.driver_data = wm8731;
659
658 return wm8731_register(wm8731); 660 return wm8731_register(wm8731);
659} 661}
660 662
661static int __devexit wm8731_spi_remove(struct spi_device *spi) 663static int __devexit wm8731_spi_remove(struct spi_device *spi)
662{ 664{
663 /* FIXME: This isn't actually implemented... */ 665 struct wm8731_priv *wm8731 = spi->dev.driver_data;
666
667 wm8731_unregister(wm8731);
668
664 return 0; 669 return 0;
665} 670}
666 671