diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-08 03:46:59 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-09 07:28:16 -0500 |
commit | bc9c040d363f3be17a59024191e9400e5b6205ae (patch) | |
tree | add6c482072a75d9d3d40ad7c34a4e9635a99259 /sound/soc/codecs/wm8770.c | |
parent | bf97ca9a0dabd6110a6aa7b4d1b20274973810af (diff) |
ASoC: Make WM8770 SPI usage unconditional
The device only supports SPI.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8770.c')
-rw-r--r-- | sound/soc/codecs/wm8770.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c index 8976eb5796d3..ea6f007a8114 100644 --- a/sound/soc/codecs/wm8770.c +++ b/sound/soc/codecs/wm8770.c | |||
@@ -690,7 +690,6 @@ static const struct of_device_id wm8770_of_match[] = { | |||
690 | }; | 690 | }; |
691 | MODULE_DEVICE_TABLE(of, wm8770_of_match); | 691 | MODULE_DEVICE_TABLE(of, wm8770_of_match); |
692 | 692 | ||
693 | #if defined(CONFIG_SPI_MASTER) | ||
694 | static int __devinit wm8770_spi_probe(struct spi_device *spi) | 693 | static int __devinit wm8770_spi_probe(struct spi_device *spi) |
695 | { | 694 | { |
696 | struct wm8770_priv *wm8770; | 695 | struct wm8770_priv *wm8770; |
@@ -726,28 +725,23 @@ static struct spi_driver wm8770_spi_driver = { | |||
726 | .probe = wm8770_spi_probe, | 725 | .probe = wm8770_spi_probe, |
727 | .remove = __devexit_p(wm8770_spi_remove) | 726 | .remove = __devexit_p(wm8770_spi_remove) |
728 | }; | 727 | }; |
729 | #endif | ||
730 | 728 | ||
731 | static int __init wm8770_modinit(void) | 729 | static int __init wm8770_modinit(void) |
732 | { | 730 | { |
733 | int ret = 0; | 731 | int ret = 0; |
734 | 732 | ||
735 | #if defined(CONFIG_SPI_MASTER) | ||
736 | ret = spi_register_driver(&wm8770_spi_driver); | 733 | ret = spi_register_driver(&wm8770_spi_driver); |
737 | if (ret) { | 734 | if (ret) { |
738 | printk(KERN_ERR "Failed to register wm8770 SPI driver: %d\n", | 735 | printk(KERN_ERR "Failed to register wm8770 SPI driver: %d\n", |
739 | ret); | 736 | ret); |
740 | } | 737 | } |
741 | #endif | ||
742 | return ret; | 738 | return ret; |
743 | } | 739 | } |
744 | module_init(wm8770_modinit); | 740 | module_init(wm8770_modinit); |
745 | 741 | ||
746 | static void __exit wm8770_exit(void) | 742 | static void __exit wm8770_exit(void) |
747 | { | 743 | { |
748 | #if defined(CONFIG_SPI_MASTER) | ||
749 | spi_unregister_driver(&wm8770_spi_driver); | 744 | spi_unregister_driver(&wm8770_spi_driver); |
750 | #endif | ||
751 | } | 745 | } |
752 | module_exit(wm8770_exit); | 746 | module_exit(wm8770_exit); |
753 | 747 | ||