Skip to content

Commit

Permalink
ASoC: Fix SPI driver binding for WM8987
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Aug 9, 2011
1 parent 6678050 commit 40045a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/soc/codecs/wm8750.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 40045a8

Please sign in to comment.