diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-03 11:32:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-09 17:17:20 +0200 |
commit | 40045a85df0ec4406fe611967ea9cf9fa668f493 (patch) | |
tree | 691e5cc0eac1b5fefe95f1f748b417ee59ab3a39 /sound | |
parent | ASoC: Fix binding of WM8750 on Jive (diff) | |
download | linux-40045a85df0ec4406fe611967ea9cf9fa668f493.tar.xz linux-40045a85df0ec4406fe611967ea9cf9fa668f493.zip |
ASoC: Fix SPI driver binding for WM8987
As we had no id_table only the driver name would be matched against
meaning that WM8987 devices wouldn't be bound.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8750.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c index 38f38fddd190..65fe78aa3757 100644 --- a/sound/soc/codecs/wm8750.c +++ b/sound/soc/codecs/wm8750.c @@ -778,11 +778,18 @@ static int __devexit wm8750_spi_remove(struct spi_device *spi) return 0; } +static const struct spi_device_id wm8750_spi_ids[] = { + { "wm8750", 0 }, + { "wm8987", 0 }, +}; +MODULE_DEVICE_TABLE(spi, wm8750_spi_id); + static struct spi_driver wm8750_spi_driver = { .driver = { .name = "wm8750-codec", .owner = THIS_MODULE, }, + .id_table = wm8750_spi_ids, .probe = wm8750_spi_probe, .remove = __devexit_p(wm8750_spi_remove), }; |