mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net: miiphybb: Drop bb_miiphy_init() and .init callback
The .init callback is not called by any function, drop it. There are no more users of the init callback, drop the entire mechanism. Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
@@ -749,9 +749,6 @@ static init_fnc_t init_sequence_r[] = {
|
||||
#ifdef CONFIG_BOARD_LATE_INIT
|
||||
board_late_init,
|
||||
#endif
|
||||
#ifdef CONFIG_BITBANGMII
|
||||
bb_miiphy_init,
|
||||
#endif
|
||||
#ifdef CONFIG_PCI_ENDPOINT
|
||||
pci_ep_init,
|
||||
#endif
|
||||
|
||||
@@ -17,17 +17,6 @@
|
||||
#include <miiphy.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
int bb_miiphy_init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < bb_miiphy_buses_num; i++)
|
||||
if (bb_miiphy_buses[i].init != NULL)
|
||||
bb_miiphy_buses[i].init(&bb_miiphy_buses[i]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline struct bb_miiphy_bus *bb_miiphy_getbus(const char *devname)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -65,7 +65,6 @@ void mdio_list_devices(void);
|
||||
|
||||
struct bb_miiphy_bus {
|
||||
char name[MDIO_NAME_LEN];
|
||||
int (*init)(struct bb_miiphy_bus *bus);
|
||||
int (*mdio_active)(struct bb_miiphy_bus *bus);
|
||||
int (*mdio_tristate)(struct bb_miiphy_bus *bus);
|
||||
int (*set_mdio)(struct bb_miiphy_bus *bus, int v);
|
||||
@@ -78,15 +77,6 @@ struct bb_miiphy_bus {
|
||||
extern struct bb_miiphy_bus bb_miiphy_buses[];
|
||||
extern int bb_miiphy_buses_num;
|
||||
|
||||
/**
|
||||
* bb_miiphy_init() - Initialize bit-banged MII bus driver
|
||||
*
|
||||
* It is called during the generic post-relocation init sequence.
|
||||
*
|
||||
* Return: 0 if OK
|
||||
*/
|
||||
int bb_miiphy_init(void);
|
||||
|
||||
int bb_miiphy_read(struct mii_dev *miidev, int addr, int devad, int reg);
|
||||
int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg,
|
||||
u16 value);
|
||||
|
||||
Reference in New Issue
Block a user