projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a58fdb7
)
wilc1000: Add id_table to spi_driver
author
David Mosberger-Tang
<davidm@egauge.net>
Thu, 2 Dec 2021 04:50:09 +0000
(
04:50
+0000)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 8 Dec 2021 18:33:11 +0000
(20:33 +0200)
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: David Mosberger-Tang <davidm@egauge.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20211202045001.2901903-1-davidm@egauge.net
drivers/net/wireless/microchip/wilc1000/spi.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/microchip/wilc1000/spi.c
b/drivers/net/wireless/microchip/wilc1000/spi.c
index
640850f
..
6e7fd18
100644
(file)
--- a/
drivers/net/wireless/microchip/wilc1000/spi.c
+++ b/
drivers/net/wireless/microchip/wilc1000/spi.c
@@
-203,11
+203,18
@@
static const struct of_device_id 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 = {
.driver = {
.name = MODALIAS,
.of_match_table = wilc_of_match,
},
+ .id_table = wilc_spi_id,
.probe = wilc_bus_probe,
.remove = wilc_bus_remove,
};