Commit f2f16ae9 authored by David Mosberger-Tang's avatar David Mosberger-Tang Committed by Kalle Valo

wilc1000: Add id_table to spi_driver

This eliminates warning message:

	SPI driver WILC_SPI has no spi_device_id for microchip,wilc1000

and makes device-tree autoloading work.
Signed-off-by: default avatarDavid Mosberger-Tang <davidm@egauge.net>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211202045001.2901903-1-davidm@egauge.net
parent a58fdb7c
...@@ -203,11 +203,18 @@ static const struct of_device_id wilc_of_match[] = { ...@@ -203,11 +203,18 @@ static const struct of_device_id wilc_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, wilc_of_match); MODULE_DEVICE_TABLE(of, wilc_of_match);
static const struct spi_device_id wilc_spi_id[] = {
{ "wilc1000", 0 },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(spi, wilc_spi_id);
static struct spi_driver wilc_spi_driver = { static struct spi_driver wilc_spi_driver = {
.driver = { .driver = {
.name = MODALIAS, .name = MODALIAS,
.of_match_table = wilc_of_match, .of_match_table = wilc_of_match,
}, },
.id_table = wilc_spi_id,
.probe = wilc_bus_probe, .probe = wilc_bus_probe,
.remove = wilc_bus_remove, .remove = wilc_bus_remove,
}; };
......
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