summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/micrel
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-05-23 12:57:20 -0700
committerDavid S. Miller <davem@davemloft.net>2014-05-24 14:03:21 -0400
commitf4c6e06dec2bfb71daf98ffc67a98866f66e17a8 (patch)
tree2229d952903469f6468c3e467354ddd762b034fe /drivers/net/ethernet/micrel
parent73fdeb82e963a0e0f7f2781560b43655ab0b40d5 (diff)
downloadlinux-f4c6e06dec2bfb71daf98ffc67a98866f66e17a8.tar.bz2
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>
Diffstat (limited to 'drivers/net/ethernet/micrel')
-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)
return 0;
}
+static const struct of_device_id ks8851_match_table[] = {
+ { .compatible = "micrel,ks8851" },
+ { }
+};
+
static struct spi_driver ks8851_driver = {
.driver = {
.name = "ks8851",
+ .of_match_table = ks8851_match_table,
.owner = THIS_MODULE,
.pm = &ks8851_pm_ops,
},