projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64df6d5
)
net: ethernet: faraday: To support device tree usage.
author
Greentime Hu
<
[email protected]
>
Wed, 17 May 2017 07:28:19 +0000
(15:28 +0800)
committer
David S. Miller
<
[email protected]
>
Thu, 18 May 2017 14:10:44 +0000
(10:10 -0400)
To support device tree usage for ftmac100.
Signed-off-by: Greentime Hu <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/faraday/ftmac100.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/faraday/ftmac100.c
b/drivers/net/ethernet/faraday/ftmac100.c
index 6ac336b546e6c226b1951c239a52b362052c04aa..1536356e2ea89ffaaf52974f1ed46b97ea861ae6 100644
(file)
--- a/
drivers/net/ethernet/faraday/ftmac100.c
+++ b/
drivers/net/ethernet/faraday/ftmac100.c
@@
-1174,11
+1174,17
@@
static int ftmac100_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id ftmac100_of_ids[] = {
+ { .compatible = "andestech,atmac100" },
+ { }
+};
+
static struct platform_driver ftmac100_driver = {
.probe = ftmac100_probe,
.remove = ftmac100_remove,
.driver = {
.name = DRV_NAME,
+ .of_match_table = ftmac100_of_ids
},
};
@@
-1202,3
+1208,4
@@
module_exit(ftmac100_exit);
MODULE_AUTHOR("Po-Yu Chuang <
[email protected]
>");
MODULE_DESCRIPTION("FTMAC100 driver");
MODULE_LICENSE("GPL");
+MODULE_DEVICE_TABLE(of, ftmac100_of_ids);