diff options
Diffstat (limited to 'sound/soc/codecs/wm8750.c')
-rw-r--r-- | sound/soc/codecs/wm8750.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c index e6422b161678..4ba1e7e93fb4 100644 --- a/sound/soc/codecs/wm8750.c +++ b/sound/soc/codecs/wm8750.c | |||
@@ -911,30 +911,6 @@ static struct spi_driver wm8750_spi_driver = { | |||
911 | .probe = wm8750_spi_probe, | 911 | .probe = wm8750_spi_probe, |
912 | .remove = __devexit_p(wm8750_spi_remove), | 912 | .remove = __devexit_p(wm8750_spi_remove), |
913 | }; | 913 | }; |
914 | |||
915 | static int wm8750_spi_write(struct spi_device *spi, const char *data, int len) | ||
916 | { | ||
917 | struct spi_transfer t; | ||
918 | struct spi_message m; | ||
919 | u8 msg[2]; | ||
920 | |||
921 | if (len <= 0) | ||
922 | return 0; | ||
923 | |||
924 | msg[0] = data[0]; | ||
925 | msg[1] = data[1]; | ||
926 | |||
927 | spi_message_init(&m); | ||
928 | memset(&t, 0, (sizeof t)); | ||
929 | |||
930 | t.tx_buf = &msg[0]; | ||
931 | t.len = len; | ||
932 | |||
933 | spi_message_add_tail(&t, &m); | ||
934 | spi_sync(spi, &m); | ||
935 | |||
936 | return len; | ||
937 | } | ||
938 | #endif | 914 | #endif |
939 | 915 | ||
940 | static int wm8750_probe(struct platform_device *pdev) | 916 | static int wm8750_probe(struct platform_device *pdev) |
@@ -973,7 +949,6 @@ static int wm8750_probe(struct platform_device *pdev) | |||
973 | #endif | 949 | #endif |
974 | #if defined(CONFIG_SPI_MASTER) | 950 | #if defined(CONFIG_SPI_MASTER) |
975 | if (setup->spi) { | 951 | if (setup->spi) { |
976 | codec->hw_write = (hw_write_t)wm8750_spi_write; | ||
977 | ret = spi_register_driver(&wm8750_spi_driver); | 952 | ret = spi_register_driver(&wm8750_spi_driver); |
978 | if (ret != 0) | 953 | if (ret != 0) |
979 | printk(KERN_ERR "can't add spi driver"); | 954 | printk(KERN_ERR "can't add spi driver"); |