Commit 2be58620 authored by Srikanth Thokala's avatar Srikanth Thokala Committed by David S. Miller

net: axienet: Removed _of_ prefix in probe and remove functions

Synchronize names with other drivers.
Signed-off-by: default avatarSrikanth Thokala <sthokal@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8495659b
...@@ -1479,7 +1479,7 @@ static void axienet_dma_err_handler(unsigned long data) ...@@ -1479,7 +1479,7 @@ static void axienet_dma_err_handler(unsigned long data)
} }
/** /**
* axienet_of_probe - Axi Ethernet probe function. * axienet_probe - Axi Ethernet probe function.
* @pdev: Pointer to platform device structure. * @pdev: Pointer to platform device structure.
* @match: Pointer to device id structure * @match: Pointer to device id structure
* *
...@@ -1491,7 +1491,7 @@ static void axienet_dma_err_handler(unsigned long data) ...@@ -1491,7 +1491,7 @@ static void axienet_dma_err_handler(unsigned long data)
* device. Parses through device tree and populates fields of * device. Parses through device tree and populates fields of
* axienet_local. It registers the Ethernet device. * axienet_local. It registers the Ethernet device.
*/ */
static int axienet_of_probe(struct platform_device *pdev) static int axienet_probe(struct platform_device *pdev)
{ {
int ret; int ret;
struct device_node *np; struct device_node *np;
...@@ -1636,7 +1636,7 @@ static int axienet_of_probe(struct platform_device *pdev) ...@@ -1636,7 +1636,7 @@ static int axienet_of_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int axienet_of_remove(struct platform_device *pdev) static int axienet_remove(struct platform_device *pdev)
{ {
struct net_device *ndev = platform_get_drvdata(pdev); struct net_device *ndev = platform_get_drvdata(pdev);
struct axienet_local *lp = netdev_priv(ndev); struct axienet_local *lp = netdev_priv(ndev);
...@@ -1652,16 +1652,16 @@ static int axienet_of_remove(struct platform_device *pdev) ...@@ -1652,16 +1652,16 @@ static int axienet_of_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct platform_driver axienet_of_driver = { static struct platform_driver axienet_driver = {
.probe = axienet_of_probe, .probe = axienet_probe,
.remove = axienet_of_remove, .remove = axienet_remove,
.driver = { .driver = {
.name = "xilinx_axienet", .name = "xilinx_axienet",
.of_match_table = axienet_of_match, .of_match_table = axienet_of_match,
}, },
}; };
module_platform_driver(axienet_of_driver); module_platform_driver(axienet_driver);
MODULE_DESCRIPTION("Xilinx Axi Ethernet driver"); MODULE_DESCRIPTION("Xilinx Axi Ethernet driver");
MODULE_AUTHOR("Xilinx"); MODULE_AUTHOR("Xilinx");
......
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