Commit 1774559f authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Paolo Abeni

net: dsa: vitesse-vsc73xx: silent spi_device_id warnings

Add spi_device_id entries to silent SPI warnings.

Fixes: 5fa6863b ("spi: Check we have a spi_device_id for each DT compatible")
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220717135831.2492844-2-o.rempel@pengutronix.deSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 855fe499
...@@ -205,10 +205,20 @@ static const struct of_device_id vsc73xx_of_match[] = { ...@@ -205,10 +205,20 @@ static const struct of_device_id vsc73xx_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, vsc73xx_of_match); MODULE_DEVICE_TABLE(of, vsc73xx_of_match);
static const struct spi_device_id vsc73xx_spi_ids[] = {
{ "vsc7385" },
{ "vsc7388" },
{ "vsc7395" },
{ "vsc7398" },
{ },
};
MODULE_DEVICE_TABLE(spi, vsc73xx_spi_ids);
static struct spi_driver vsc73xx_spi_driver = { static struct spi_driver vsc73xx_spi_driver = {
.probe = vsc73xx_spi_probe, .probe = vsc73xx_spi_probe,
.remove = vsc73xx_spi_remove, .remove = vsc73xx_spi_remove,
.shutdown = vsc73xx_spi_shutdown, .shutdown = vsc73xx_spi_shutdown,
.id_table = vsc73xx_spi_ids,
.driver = { .driver = {
.name = "vsc73xx-spi", .name = "vsc73xx-spi",
.of_match_table = vsc73xx_of_match, .of_match_table = vsc73xx_of_match,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment