diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-03-26 21:07:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-28 01:38:02 -0400 |
commit | 33c0431ea67d1f6f3bf061a5cd2a5c52a07bb165 (patch) | |
tree | 1b9f250fd10328c71f40ceb269d7283bb127fb13 /drivers/net/ethernet | |
parent | ca7efe819cba14784e701638fe6bc69eb4a4438d (diff) |
net: emaclite: remove empty MDIO bus reset function
xemaclite_mdio_reset() does nothing useful and is optional for the MDIO
bus code, so let's just remove it.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 58756617644f..0d87c67a5ff7 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c | |||
@@ -795,18 +795,6 @@ static int xemaclite_mdio_write(struct mii_bus *bus, int phy_id, int reg, | |||
795 | } | 795 | } |
796 | 796 | ||
797 | /** | 797 | /** |
798 | * xemaclite_mdio_reset - Reset the mdio bus. | ||
799 | * @bus: Pointer to the MII bus | ||
800 | * | ||
801 | * This function is required(?) as per Documentation/networking/phy.txt. | ||
802 | * There is no reset in this device; this function always returns 0. | ||
803 | */ | ||
804 | static int xemaclite_mdio_reset(struct mii_bus *bus) | ||
805 | { | ||
806 | return 0; | ||
807 | } | ||
808 | |||
809 | /** | ||
810 | * xemaclite_mdio_setup - Register mii_bus for the Emaclite device | 798 | * xemaclite_mdio_setup - Register mii_bus for the Emaclite device |
811 | * @lp: Pointer to the Emaclite device private data | 799 | * @lp: Pointer to the Emaclite device private data |
812 | * @ofdev: Pointer to OF device structure | 800 | * @ofdev: Pointer to OF device structure |
@@ -861,7 +849,6 @@ static int xemaclite_mdio_setup(struct net_local *lp, struct device *dev) | |||
861 | bus->name = "Xilinx Emaclite MDIO"; | 849 | bus->name = "Xilinx Emaclite MDIO"; |
862 | bus->read = xemaclite_mdio_read; | 850 | bus->read = xemaclite_mdio_read; |
863 | bus->write = xemaclite_mdio_write; | 851 | bus->write = xemaclite_mdio_write; |
864 | bus->reset = xemaclite_mdio_reset; | ||
865 | bus->parent = dev; | 852 | bus->parent = dev; |
866 | bus->irq = lp->mdio_irqs; /* preallocated IRQ table */ | 853 | bus->irq = lp->mdio_irqs; /* preallocated IRQ table */ |
867 | 854 | ||