Skip to content

Commit 855fe49

Browse files
oleremPaolo Abeni
authored andcommitted
net: dsa: sja1105: silent spi_device_id warnings
Add spi_device_id entries to silent following warnings: SPI driver sja1105 has no spi_device_id for nxp,sja1105e SPI driver sja1105 has no spi_device_id for nxp,sja1105t SPI driver sja1105 has no spi_device_id for nxp,sja1105p SPI driver sja1105 has no spi_device_id for nxp,sja1105q SPI driver sja1105 has no spi_device_id for nxp,sja1105r SPI driver sja1105 has no spi_device_id for nxp,sja1105s SPI driver sja1105 has no spi_device_id for nxp,sja1110a SPI driver sja1105 has no spi_device_id for nxp,sja1110b SPI driver sja1105 has no spi_device_id for nxp,sja1110c SPI driver sja1105 has no spi_device_id for nxp,sja1110d 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]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent d7241f6 commit 855fe49

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drivers/net/dsa/sja1105/sja1105_main.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3382,12 +3382,28 @@ static const struct of_device_id sja1105_dt_ids[] = {
33823382
};
33833383
MODULE_DEVICE_TABLE(of, sja1105_dt_ids);
33843384

3385+
static const struct spi_device_id sja1105_spi_ids[] = {
3386+
{ "sja1105e" },
3387+
{ "sja1105t" },
3388+
{ "sja1105p" },
3389+
{ "sja1105q" },
3390+
{ "sja1105r" },
3391+
{ "sja1105s" },
3392+
{ "sja1110a" },
3393+
{ "sja1110b" },
3394+
{ "sja1110c" },
3395+
{ "sja1110d" },
3396+
{ },
3397+
};
3398+
MODULE_DEVICE_TABLE(spi, sja1105_spi_ids);
3399+
33853400
static struct spi_driver sja1105_driver = {
33863401
.driver = {
33873402
.name = "sja1105",
33883403
.owner = THIS_MODULE,
33893404
.of_match_table = of_match_ptr(sja1105_dt_ids),
33903405
},
3406+
.id_table = sja1105_spi_ids,
33913407
.probe = sja1105_probe,
33923408
.remove = sja1105_remove,
33933409
.shutdown = sja1105_shutdown,

0 commit comments

Comments
 (0)