Skip to content

Commit

Permalink
net: axienet: Removed _of_ prefix in probe and remove functions
Browse files Browse the repository at this point in the history
Synchronize names with other drivers.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Srikanth Thokala authored and David S. Miller committed May 5, 2015
1 parent 8495659 commit 2be5862
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drivers/net/ethernet/xilinx/xilinx_axienet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* @match: Pointer to device id structure
*
Expand All @@ -1491,7 +1491,7 @@ static void axienet_dma_err_handler(unsigned long data)
* device. Parses through device tree and populates fields of
* 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;
struct device_node *np;
Expand Down Expand Up @@ -1636,7 +1636,7 @@ static int axienet_of_probe(struct platform_device *pdev)
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 axienet_local *lp = netdev_priv(ndev);
Expand All @@ -1652,16 +1652,16 @@ static int axienet_of_remove(struct platform_device *pdev)
return 0;
}

static struct platform_driver axienet_of_driver = {
.probe = axienet_of_probe,
.remove = axienet_of_remove,
static struct platform_driver axienet_driver = {
.probe = axienet_probe,
.remove = axienet_remove,
.driver = {
.name = "xilinx_axienet",
.of_match_table = axienet_of_match,
},
};

module_platform_driver(axienet_of_driver);
module_platform_driver(axienet_driver);

MODULE_DESCRIPTION("Xilinx Axi Ethernet driver");
MODULE_AUTHOR("Xilinx");
Expand Down

0 comments on commit 2be5862

Please sign in to comment.