aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-05-31 05:47:32 -0700
committerDavid S. Miller <davem@davemloft.net>2010-05-31 05:47:32 -0700
commitbc284f94f84c3d76e49c6f3df9028c503f9589d9 (patch)
tree395cdd67d9201ac123a38ed3ff7d43fe6eecf956
parent64960848abd18d0bcde3f53ffa7ed0b631e6b25d (diff)
greth: Fix build after OF device conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/greth.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c
index f37a4c143dd..3a029d02c2b 100644
--- a/drivers/net/greth.c
+++ b/drivers/net/greth.c
@@ -1607,14 +1607,13 @@ static struct of_device_id greth_of_match[] = {
MODULE_DEVICE_TABLE(of, greth_of_match);
static struct of_platform_driver greth_of_driver = {
- .name = "grlib-greth",
- .match_table = greth_of_match,
+ .driver = {
+ .name = "grlib-greth",
+ .owner = THIS_MODULE,
+ .of_match_table = greth_of_match,
+ },
.probe = greth_of_probe,
.remove = __devexit_p(greth_of_remove),
- .driver = {
- .owner = THIS_MODULE,
- .name = "grlib-greth",
- },
};
static int __init greth_init(void)