diff options
-rw-r--r-- | drivers/net/phy/spi_ks8995.c | 9 |
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 | }; |
160 | MODULE_DEVICE_TABLE(spi, ks8995_id); | 160 | MODULE_DEVICE_TABLE(spi, ks8995_id); |
161 | 161 | ||
162 | static const struct of_device_id ks8895_spi_of_match[] = { | ||
163 | { .compatible = "micrel,ks8995" }, | ||
164 | { .compatible = "micrel,ksz8864" }, | ||
165 | { .compatible = "micrel,ksz8795" }, | ||
166 | { }, | ||
167 | }; | ||
168 | MODULE_DEVICE_TABLE(of, ks8895_spi_of_match); | ||
169 | |||
162 | static inline u8 get_chip_id(u8 val) | 170 | static 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) | |||
526 | static struct spi_driver ks8995_driver = { | 534 | static 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, |