Skip to content

Commit 1774559

Browse files
oleremPaolo Abeni
authored andcommitted
net: dsa: vitesse-vsc73xx: silent spi_device_id warnings
Add spi_device_id entries to silent SPI warnings. Fixes: 5fa6863 ("spi: Check we have a spi_device_id for each DT compatible") Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 855fe49 commit 1774559

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/net/dsa/vitesse-vsc73xx-spi.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,20 @@ static const struct of_device_id vsc73xx_of_match[] = {
205205
};
206206
MODULE_DEVICE_TABLE(of, vsc73xx_of_match);
207207

208+
static const struct spi_device_id vsc73xx_spi_ids[] = {
209+
{ "vsc7385" },
210+
{ "vsc7388" },
211+
{ "vsc7395" },
212+
{ "vsc7398" },
213+
{ },
214+
};
215+
MODULE_DEVICE_TABLE(spi, vsc73xx_spi_ids);
216+
208217
static struct spi_driver vsc73xx_spi_driver = {
209218
.probe = vsc73xx_spi_probe,
210219
.remove = vsc73xx_spi_remove,
211220
.shutdown = vsc73xx_spi_shutdown,
221+
.id_table = vsc73xx_spi_ids,
212222
.driver = {
213223
.name = "vsc73xx-spi",
214224
.of_match_table = vsc73xx_of_match,

0 commit comments

Comments
 (0)