These functions are no longer necessary, remove them.
The struct bb_miiphy_bus is no longer necessary either,
remove it as well.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Jim Liu <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Michael Chang <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Parvathi Bhogaraju <[email protected]>
Cc: Paul Barker <[email protected]>
Cc: Ramon Fried <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/net/phy/miiphybb.c | 19 -------------------
 include/miiphy.h           |  9 ---------
 2 files changed, 28 deletions(-)

diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c
index 60c791b707b..76463da7299 100644
--- a/drivers/net/phy/miiphybb.c
+++ b/drivers/net/phy/miiphybb.c
@@ -14,28 +14,9 @@
 
 #include <ioports.h>
 #include <ppc_asm.tmpl>
-#include <malloc.h>
 #include <miiphy.h>
 #include <asm/global_data.h>
 
-struct bb_miiphy_bus *bb_miiphy_alloc(void)
-{
-       struct bb_miiphy_bus *bus;
-
-       bus = malloc(sizeof(*bus));
-       if (!bus)
-               return bus;
-
-       mdio_init(&bus->mii);
-
-       return bus;
-}
-
-void bb_miiphy_free(struct bb_miiphy_bus *bus)
-{
-       free(bus);
-}
-
 /*****************************************************************************
  *
  * Utility to send the preamble, address, and register (common to read
diff --git a/include/miiphy.h b/include/miiphy.h
index 097c46c27bf..5930fa1b1c9 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -64,8 +64,6 @@ void mdio_list_devices(void);
 
 #define BB_MII_DEVNAME "bb_miiphy"
 
-struct bb_miiphy_bus;
-
 struct bb_miiphy_bus_ops {
        int (*mdio_active)(struct mii_dev *miidev);
        int (*mdio_tristate)(struct mii_dev *miidev);
@@ -75,13 +73,6 @@ struct bb_miiphy_bus_ops {
        int (*delay)(struct mii_dev *miidev);
 };
 
-struct bb_miiphy_bus {
-       struct mii_dev mii;
-};
-
-struct bb_miiphy_bus *bb_miiphy_alloc(void);
-void bb_miiphy_free(struct bb_miiphy_bus *bus);
-
 int bb_miiphy_read(struct mii_dev *miidev, const struct bb_miiphy_bus_ops *ops,
                   int addr, int devad, int reg);
 int bb_miiphy_write(struct mii_dev *miidev, const struct bb_miiphy_bus_ops 
*ops,
-- 
2.47.2

Reply via email to