Skip to content

Commit

Permalink
net: ks8851: Add of match table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and David S. Miller committed May 24, 2014
1 parent 73fdeb8 commit f4c6e06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/ethernet/micrel/ks8851.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit f4c6e06

Please sign in to comment.