Skip to content

Commit f3ce240

Browse files
ajaykathatnoglitch
authored andcommitted
wilc1000: Add id_table to spi_driver
This eliminates warning message: SPI driver WILC_SPI has no spi_device_id for microchip,wilc1000 & microchip, wilc3000 The changes are based on mainlined patch https://patchwork.kernel.org/project/netdevbpf/patch/20211202045001.2901903-1-davidm@egauge.net/ Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
1 parent 98d4abc commit f3ce240

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • drivers/net/wireless/microchip/wilc1000

drivers/net/wireless/microchip/wilc1000/spi.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,14 @@ static const struct of_device_id wilc_of_match[] = {
276276
{ /* sentinel */ }
277277
};
278278
MODULE_DEVICE_TABLE(of, wilc_of_match);
279+
280+
static const struct spi_device_id wilc_spi_id[] = {
281+
{"wilc1000", 0},
282+
{"wilc3000", 0},
283+
{ /* sentinel */ }
284+
};
285+
MODULE_DEVICE_TABLE(spi, wilc_spi_id);
286+
279287
static const struct dev_pm_ops wilc_spi_pm_ops = {
280288
.suspend = wilc_spi_suspend,
281289
.resume = wilc_spi_resume,
@@ -287,6 +295,7 @@ static struct spi_driver wilc_spi_driver = {
287295
.of_match_table = wilc_of_match,
288296
.pm = &wilc_spi_pm_ops,
289297
},
298+
.id_table = wilc_spi_id,
290299
.probe = wilc_bus_probe,
291300
.remove = wilc_bus_remove,
292301
};

0 commit comments

Comments
 (0)