diff options
Diffstat (limited to 'sound/soc/codecs/adav80x.c')
-rw-r--r-- | sound/soc/codecs/adav80x.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c index 3c839cc4e00e..15b012d0f226 100644 --- a/sound/soc/codecs/adav80x.c +++ b/sound/soc/codecs/adav80x.c | |||
@@ -868,6 +868,12 @@ static int adav80x_bus_remove(struct device *dev) | |||
868 | } | 868 | } |
869 | 869 | ||
870 | #if defined(CONFIG_SPI_MASTER) | 870 | #if defined(CONFIG_SPI_MASTER) |
871 | static const struct spi_device_id adav80x_spi_id[] = { | ||
872 | { "adav801", 0 }, | ||
873 | { } | ||
874 | }; | ||
875 | MODULE_DEVICE_TABLE(spi, adav80x_spi_id); | ||
876 | |||
871 | static int adav80x_spi_probe(struct spi_device *spi) | 877 | static int adav80x_spi_probe(struct spi_device *spi) |
872 | { | 878 | { |
873 | return adav80x_bus_probe(&spi->dev, SND_SOC_SPI); | 879 | return adav80x_bus_probe(&spi->dev, SND_SOC_SPI); |
@@ -885,15 +891,16 @@ static struct spi_driver adav80x_spi_driver = { | |||
885 | }, | 891 | }, |
886 | .probe = adav80x_spi_probe, | 892 | .probe = adav80x_spi_probe, |
887 | .remove = adav80x_spi_remove, | 893 | .remove = adav80x_spi_remove, |
894 | .id_table = adav80x_spi_id, | ||
888 | }; | 895 | }; |
889 | #endif | 896 | #endif |
890 | 897 | ||
891 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 898 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) |
892 | static const struct i2c_device_id adav80x_id[] = { | 899 | static const struct i2c_device_id adav80x_i2c_id[] = { |
893 | { "adav803", 0 }, | 900 | { "adav803", 0 }, |
894 | { } | 901 | { } |
895 | }; | 902 | }; |
896 | MODULE_DEVICE_TABLE(i2c, adav80x_id); | 903 | MODULE_DEVICE_TABLE(i2c, adav80x_i2c_id); |
897 | 904 | ||
898 | static int adav80x_i2c_probe(struct i2c_client *client, | 905 | static int adav80x_i2c_probe(struct i2c_client *client, |
899 | const struct i2c_device_id *id) | 906 | const struct i2c_device_id *id) |
@@ -913,7 +920,7 @@ static struct i2c_driver adav80x_i2c_driver = { | |||
913 | }, | 920 | }, |
914 | .probe = adav80x_i2c_probe, | 921 | .probe = adav80x_i2c_probe, |
915 | .remove = adav80x_i2c_remove, | 922 | .remove = adav80x_i2c_remove, |
916 | .id_table = adav80x_id, | 923 | .id_table = adav80x_i2c_id, |
917 | }; | 924 | }; |
918 | #endif | 925 | #endif |
919 | 926 | ||