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
Unified · Split
| @@ -3382,12 +3382,28 @@ static const struct of_device_id sja1105_dt_ids[] = { · 3381 unmodified lines | |||
| 3382 | }; | 3382 | }; |
| 3383 | MODULE_DEVICE_TABLE(of, sja1105_dt_ids); | 3383 | MODULE_DEVICE_TABLE(of, sja1105_dt_ids); |
| 3384 | 3384 | ||
| 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 | |||
| 3385 | static struct spi_driver sja1105_driver = { | 3400 | static struct spi_driver sja1105_driver = { |
| 3386 | .driver = { | 3401 | .driver = { |
| 3387 | .name = "sja1105", | 3402 | .name = "sja1105", |
| 3388 | .owner = THIS_MODULE, | 3403 | .owner = THIS_MODULE, |
| 3389 | .of_match_table = of_match_ptr(sja1105_dt_ids), | 3404 | .of_match_table = of_match_ptr(sja1105_dt_ids), |
| 3390 | }, | 3405 | }, |
| 3406 | .id_table = sja1105_spi_ids, | ||
| 3391 | .probe = sja1105_probe, | 3407 | .probe = sja1105_probe, |
| 3392 | .remove = sja1105_remove, | 3408 | .remove = sja1105_remove, |
| 3393 | .shutdown = sja1105_shutdown, | 3409 | .shutdown = sja1105_shutdown, |