aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-05-23 15:57:20 -0400
committerDavid S. Miller <davem@davemloft.net>2014-05-24 14:03:21 -0400
commitf4c6e06dec2bfb71daf98ffc67a98866f66e17a8 (patch)
tree2229d952903469f6468c3e467354ddd762b034fe
parent73fdeb82e963a0e0f7f2781560b43655ab0b40d5 (diff)
net: ks8851: Add of match table
Users are currently just providing "ks8851" as the compatible for this driver in device tree. Add a compatible string that provides the vendor name along with the device name to be more explicit. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/micrel/ks8851.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c
index 3a322daba5ff..e72918970a58 100644
--- a/drivers/net/ethernet/micrel/ks8851.c
+++ b/drivers/net/ethernet/micrel/ks8851.c
@@ -1603,9 +1603,15 @@ static int ks8851_remove(struct spi_device *spi)
1603 return 0; 1603 return 0;
1604} 1604}
1605 1605
1606static const struct of_device_id ks8851_match_table[] = {
1607 { .compatible = "micrel,ks8851" },
1608 { }
1609};
1610
1606static struct spi_driver ks8851_driver = { 1611static struct spi_driver ks8851_driver = {
1607 .driver = { 1612 .driver = {
1608 .name = "ks8851", 1613 .name = "ks8851",
1614 .of_match_table = ks8851_match_table,
1609 .owner = THIS_MODULE, 1615 .owner = THIS_MODULE,
1610 .pm = &ks8851_pm_ops, 1616 .pm = &ks8851_pm_ops,
1611 }, 1617 },