aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/spi_ks8995.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index 92b64e254b44..7475cef17cf7 100644
--- a/drivers/net/phy/spi_ks8995.c
+++ b/drivers/net/phy/spi_ks8995.c
@@ -159,6 +159,14 @@ static const struct spi_device_id ks8995_id[] = {
159}; 159};
160MODULE_DEVICE_TABLE(spi, ks8995_id); 160MODULE_DEVICE_TABLE(spi, ks8995_id);
161 161
162static const struct of_device_id ks8895_spi_of_match[] = {
163 { .compatible = "micrel,ks8995" },
164 { .compatible = "micrel,ksz8864" },
165 { .compatible = "micrel,ksz8795" },
166 { },
167 };
168MODULE_DEVICE_TABLE(of, ks8895_spi_of_match);
169
162static inline u8 get_chip_id(u8 val) 170static inline u8 get_chip_id(u8 val)
163{ 171{
164 return (val >> ID1_CHIPID_S) & ID1_CHIPID_M; 172 return (val >> ID1_CHIPID_S) & ID1_CHIPID_M;
@@ -526,6 +534,7 @@ static int ks8995_remove(struct spi_device *spi)
526static struct spi_driver ks8995_driver = { 534static struct spi_driver ks8995_driver = {
527 .driver = { 535 .driver = {
528 .name = "spi-ks8995", 536 .name = "spi-ks8995",
537 .of_match_table = of_match_ptr(ks8895_spi_of_match),
529 }, 538 },
530 .probe = ks8995_probe, 539 .probe = ks8995_probe,
531 .remove = ks8995_remove, 540 .remove = ks8995_remove,