summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8711.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-10-01 07:39:45 +0200
committerTakashi Iwai <tiwai@suse.de>2009-10-01 07:39:45 +0200
commitbb26276744a80d066681836f4d49c70010b129d6 (patch)
tree4c2aceb441775c573bba0d8b6ec82564d0d4d7cd /sound/soc/codecs/wm8711.c
parentf34762b64704814838619c1d258bebf19004f5cd (diff)
ASoC: Fix build errors of wm8711.c with SPI
Fix a couple of typos and a missing header file inclusion to build wm8711.c properly with CONFIG_SPI_MASTER. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r--sound/soc/codecs/wm8711.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c
index ae083eb92fb..90ec8c58e2f 100644
--- a/sound/soc/codecs/wm8711.c
+++ b/sound/soc/codecs/wm8711.c
@@ -19,6 +19,7 @@
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
+#include <linux/spi/spi.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
@@ -632,9 +633,9 @@ static int __init wm8711_modinit(void)
}
#endif
#if defined(CONFIG_SPI_MASTER)
- ret = spi_register_driver(&wm8731_spi_driver);
+ ret = spi_register_driver(&wm8711_spi_driver);
if (ret != 0) {
- printk(KERN_ERR "Failed to register WM8731 SPI driver: %d\n",
+ printk(KERN_ERR "Failed to register WM8711 SPI driver: %d\n",
ret);
}
#endif
@@ -648,7 +649,7 @@ static void __exit wm8711_exit(void)
i2c_del_driver(&wm8711_i2c_driver);
#endif
#if defined(CONFIG_SPI_MASTER)
- spi_unregister_driver(&wm8731_spi_driver);
+ spi_unregister_driver(&wm8711_spi_driver);
#endif
}
module_exit(wm8711_exit);