Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236705
b: refs/heads/master
c: 682a169
h: refs/heads/master
i:
  236703: d140271
v: v3
  • Loading branch information
Thomas Chou authored and David S. Miller committed Jan 26, 2011
1 parent 44afe79 commit 6583091
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b86fb2cfe82fc4a555f0841f5f8ca4db303ed092
refs/heads/master: 682a1694115ec1c8fcd794c35b80354166978207
13 changes: 13 additions & 0 deletions trunk/drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ static const char version[] =
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/workqueue.h>
#include <linux/of.h>

#include <linux/netdevice.h>
#include <linux/etherdevice.h>
Expand Down Expand Up @@ -2394,6 +2395,15 @@ static int smc_drv_resume(struct device *dev)
return 0;
}

#ifdef CONFIG_OF
static const struct of_device_id smc91x_match[] = {
{ .compatible = "smsc,lan91c94", },
{ .compatible = "smsc,lan91c111", },
{},
}
MODULE_DEVICE_TABLE(of, smc91x_match);
#endif

static struct dev_pm_ops smc_drv_pm_ops = {
.suspend = smc_drv_suspend,
.resume = smc_drv_resume,
Expand All @@ -2406,6 +2416,9 @@ static struct platform_driver smc_driver = {
.name = CARDNAME,
.owner = THIS_MODULE,
.pm = &smc_drv_pm_ops,
#ifdef CONFIG_OF
.of_match_table = smc91x_match,
#endif
},
};

Expand Down

0 comments on commit 6583091

Please sign in to comment.