diff options
Diffstat (limited to 'sound/soc/codecs/wm8510.c')
-rw-r--r-- | sound/soc/codecs/wm8510.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c index 4ca724ff4c6e..bcd6a40171dc 100644 --- a/sound/soc/codecs/wm8510.c +++ b/sound/soc/codecs/wm8510.c | |||
@@ -737,30 +737,6 @@ static struct spi_driver wm8510_spi_driver = { | |||
737 | .probe = wm8510_spi_probe, | 737 | .probe = wm8510_spi_probe, |
738 | .remove = __devexit_p(wm8510_spi_remove), | 738 | .remove = __devexit_p(wm8510_spi_remove), |
739 | }; | 739 | }; |
740 | |||
741 | static int wm8510_spi_write(struct spi_device *spi, const char *data, int len) | ||
742 | { | ||
743 | struct spi_transfer t; | ||
744 | struct spi_message m; | ||
745 | u8 msg[2]; | ||
746 | |||
747 | if (len <= 0) | ||
748 | return 0; | ||
749 | |||
750 | msg[0] = data[0]; | ||
751 | msg[1] = data[1]; | ||
752 | |||
753 | spi_message_init(&m); | ||
754 | memset(&t, 0, (sizeof t)); | ||
755 | |||
756 | t.tx_buf = &msg[0]; | ||
757 | t.len = len; | ||
758 | |||
759 | spi_message_add_tail(&t, &m); | ||
760 | spi_sync(spi, &m); | ||
761 | |||
762 | return len; | ||
763 | } | ||
764 | #endif /* CONFIG_SPI_MASTER */ | 740 | #endif /* CONFIG_SPI_MASTER */ |
765 | 741 | ||
766 | static int wm8510_probe(struct platform_device *pdev) | 742 | static int wm8510_probe(struct platform_device *pdev) |
@@ -790,7 +766,6 @@ static int wm8510_probe(struct platform_device *pdev) | |||
790 | #endif | 766 | #endif |
791 | #if defined(CONFIG_SPI_MASTER) | 767 | #if defined(CONFIG_SPI_MASTER) |
792 | if (setup->spi) { | 768 | if (setup->spi) { |
793 | codec->hw_write = (hw_write_t)wm8510_spi_write; | ||
794 | ret = spi_register_driver(&wm8510_spi_driver); | 769 | ret = spi_register_driver(&wm8510_spi_driver); |
795 | if (ret != 0) | 770 | if (ret != 0) |
796 | printk(KERN_ERR "can't add spi driver"); | 771 | printk(KERN_ERR "can't add spi driver"); |