Commit 47ab37a1 authored by Greentime Hu's avatar Greentime Hu Committed by David S. Miller

net: ethernet: faraday: To support device tree usage.

To support device tree usage for ftmac100.
Signed-off-by: default avatarGreentime Hu <green.hu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64df6d52
...@@ -1174,11 +1174,17 @@ static int ftmac100_remove(struct platform_device *pdev) ...@@ -1174,11 +1174,17 @@ static int ftmac100_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct of_device_id ftmac100_of_ids[] = {
{ .compatible = "andestech,atmac100" },
{ }
};
static struct platform_driver ftmac100_driver = { static struct platform_driver ftmac100_driver = {
.probe = ftmac100_probe, .probe = ftmac100_probe,
.remove = ftmac100_remove, .remove = ftmac100_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.of_match_table = ftmac100_of_ids
}, },
}; };
...@@ -1202,3 +1208,4 @@ module_exit(ftmac100_exit); ...@@ -1202,3 +1208,4 @@ module_exit(ftmac100_exit);
MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>"); MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>");
MODULE_DESCRIPTION("FTMAC100 driver"); MODULE_DESCRIPTION("FTMAC100 driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(of, ftmac100_of_ids);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment