aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8728.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8728.c')
-rw-r--r--sound/soc/codecs/wm8728.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c
index a28630de9c9..16e969a762c 100644
--- a/sound/soc/codecs/wm8728.c
+++ b/sound/soc/codecs/wm8728.c
@@ -425,30 +425,6 @@ static struct spi_driver wm8728_spi_driver = {
425 .probe = wm8728_spi_probe, 425 .probe = wm8728_spi_probe,
426 .remove = __devexit_p(wm8728_spi_remove), 426 .remove = __devexit_p(wm8728_spi_remove),
427}; 427};
428
429static int wm8728_spi_write(struct spi_device *spi, const char *data, int len)
430{
431 struct spi_transfer t;
432 struct spi_message m;
433 u8 msg[2];
434
435 if (len <= 0)
436 return 0;
437
438 msg[0] = data[0];
439 msg[1] = data[1];
440
441 spi_message_init(&m);
442 memset(&t, 0, (sizeof t));
443
444 t.tx_buf = &msg[0];
445 t.len = len;
446
447 spi_message_add_tail(&t, &m);
448 spi_sync(spi, &m);
449
450 return len;
451}
452#endif /* CONFIG_SPI_MASTER */ 428#endif /* CONFIG_SPI_MASTER */
453 429
454static int wm8728_probe(struct platform_device *pdev) 430static int wm8728_probe(struct platform_device *pdev)
@@ -478,7 +454,6 @@ static int wm8728_probe(struct platform_device *pdev)
478#endif 454#endif
479#if defined(CONFIG_SPI_MASTER) 455#if defined(CONFIG_SPI_MASTER)
480 if (setup->spi) { 456 if (setup->spi) {
481 codec->hw_write = (hw_write_t)wm8728_spi_write;
482 ret = spi_register_driver(&wm8728_spi_driver); 457 ret = spi_register_driver(&wm8728_spi_driver);
483 if (ret != 0) 458 if (ret != 0)
484 printk(KERN_ERR "can't add spi driver"); 459 printk(KERN_ERR "can't add spi driver");