aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/greth.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-02-22 23:05:51 -0500
committerGrant Likely <grant.likely@secretlab.ca>2011-02-28 15:22:44 -0500
commit74888760d40b3ac9054f9c5fa07b566c0676ba2d (patch)
treeede65e8b5ad746ce6c04cbe77ceb5bbf6a6dc6fd /drivers/net/greth.c
parentf07eb223a081b278be02a58394cb5fd66f1a1bbd (diff)
dt/net: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/net. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/greth.c')
-rw-r--r--drivers/net/greth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c
index fdb0333f5cb6..396ff7d785d1 100644
--- a/drivers/net/greth.c
+++ b/drivers/net/greth.c
@@ -1411,7 +1411,7 @@ error:
1411} 1411}
1412 1412
1413/* Initialize the GRETH MAC */ 1413/* Initialize the GRETH MAC */
1414static int __devinit greth_of_probe(struct platform_device *ofdev, const struct of_device_id *match) 1414static int __devinit greth_of_probe(struct platform_device *ofdev)
1415{ 1415{
1416 struct net_device *dev; 1416 struct net_device *dev;
1417 struct greth_private *greth; 1417 struct greth_private *greth;
@@ -1646,7 +1646,7 @@ static struct of_device_id greth_of_match[] = {
1646 1646
1647MODULE_DEVICE_TABLE(of, greth_of_match); 1647MODULE_DEVICE_TABLE(of, greth_of_match);
1648 1648
1649static struct of_platform_driver greth_of_driver = { 1649static struct platform_driver greth_of_driver = {
1650 .driver = { 1650 .driver = {
1651 .name = "grlib-greth", 1651 .name = "grlib-greth",
1652 .owner = THIS_MODULE, 1652 .owner = THIS_MODULE,
@@ -1658,12 +1658,12 @@ static struct of_platform_driver greth_of_driver = {
1658 1658
1659static int __init greth_init(void) 1659static int __init greth_init(void)
1660{ 1660{
1661 return of_register_platform_driver(&greth_of_driver); 1661 return platform_driver_register(&greth_of_driver);
1662} 1662}
1663 1663
1664static void __exit greth_cleanup(void) 1664static void __exit greth_cleanup(void)
1665{ 1665{
1666 of_unregister_platform_driver(&greth_of_driver); 1666 platform_driver_unregister(&greth_of_driver);
1667} 1667}
1668 1668
1669module_init(greth_init); 1669module_init(greth_init);