diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2014-05-23 12:57:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-24 14:03:21 -0400 |
commit | f4c6e06dec2bfb71daf98ffc67a98866f66e17a8 (patch) | |
tree | 2229d952903469f6468c3e467354ddd762b034fe /drivers/net/ethernet/micrel/ks8851.c | |
parent | 73fdeb82e963a0e0f7f2781560b43655ab0b40d5 (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>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8851.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index 3a322daba5f..e72918970a5 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, }, |