From: David S. Miller Date: Mon, 31 May 2010 12:47:32 +0000 (-0700) Subject: greth: Fix build after OF device conversions. X-Git-Tag: v2.6.35-rc2~4^2~37 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=bc284f94f84c3d76e49c6f3df9028c503f9589d9 greth: Fix build after OF device conversions. Signed-off-by: David S. Miller --- diff --git a/drivers/net/greth.c b/drivers/net/greth.c index f37a4c1..3a029d0 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)