浏览代码

net: cpmac: fix cpmac driver structure

This patch changes to style of declarattion which follows every driver

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
Varka Bhadram 11 年之前
父节点
当前提交
96a8d3c141
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      drivers/net/ethernet/ti/cpmac.c

+ 5 - 3
drivers/net/ethernet/ti/cpmac.c

@@ -1187,9 +1187,11 @@ static int cpmac_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver cpmac_driver = {
-	.driver.name = "cpmac",
-	.driver.owner = THIS_MODULE,
-	.probe = cpmac_probe,
+	.driver = {
+		.name 	= "cpmac",
+		.owner 	= THIS_MODULE,
+	},
+	.probe 	= cpmac_probe,
 	.remove = cpmac_remove,
 };