Skip to contentSkip to conversation

fs_enet: Remove unused fields in the fs_mii_bb_platform_info structure.

PATCH In review Laurent Pinchart 3 participants 4 messages Feb 15, 2008 – Mar 7, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs_enet: Remove unused fields in the fs_mii_bb_platform_info structure.

The mdio_port, mdio_bit, mdc_port and mdc_bit fields in the fs_mii_bb_platform_info structure are left-overs from the move to the Phy Abstraction Layer subsystem. They can be safely removed.

---
 arch/powerpc/sysdev/fsl_soc.c |    4 ----
 include/linux/fs_enet_pd.h    |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)
arch/powerpc/sysdev/fsl_soc.c +0 -4
index 3ace747..cefc8b4 100644
@@ -804,10 +804,6 @@ static int __init fs_enet_of_init(void)
 					mdio_bb_prop[1];
 				fs_enet_mdio_bb_data.mdc_dat.bit =
 					mdio_bb_prop[2];
-				fs_enet_mdio_bb_data.mdio_port =
-					mdio_bb_prop[3];
-				fs_enet_mdio_bb_data.mdc_port =
-					mdio_bb_prop[4];
 				fs_enet_mdio_bb_data.delay =
 					mdio_bb_prop[5];
 
include/linux/fs_enet_pd.h +0 -4
index 9bc045b..decc4b5 100644
@@ -103,10 +103,6 @@ struct fs_mii_bb_platform_info {
 	struct fs_mii_bit 	mdio_dir;
 	struct fs_mii_bit 	mdio_dat;
 	struct fs_mii_bit	mdc_dat;
-	int mdio_port;	/* port & bit for MDIO */
-	int mdio_bit;
-	int mdc_port;	/* port & bit for MDC  */
-	int mdc_bit;
 	int delay;	/* delay in us         */
 	int irq[32]; 	/* irqs per phy's */
 };
Signature · 12 lines
1.5.0

-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75
#1 lore raw
Quoted 5 lines · Laurent Pinchart

The mdio_port, mdio_bit, mdc_port and mdc_bit fields in the fs_mii_bb_platform_info structure are left-overs from the move to the Phy Abstraction Layer subsystem. They can be safely removed.

[snip]

Is there something wrong with the patch ?

Signature · 9 lines
Laurent Pinchart
CSE Semaphore Belgium

Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75
#2 lore raw
Quoted 9 lines · Laurent Pinchart
Quoted 5 lines · Laurent Pinchart

The mdio_port, mdio_bit, mdc_port and mdc_bit fields in the fs_mii_bb_platform_info structure are left-overs from the move to the Phy Abstraction Layer subsystem. They can be safely removed.

[snip]

Is there something wrong with the patch ?

No, the patch looks OK. However, note that non-PPC_CPM_NEW_BINDING code should go away altogether soon.

-Scott

#3 lore raw
Quoted 6 lines · Scott Wood
Quoted 5 lines · Laurent Pinchart
Quoted 4 lines · Laurent Pinchart

The mdio_port, mdio_bit, mdc_port and mdc_bit fields in the fs_mii_bb_platform_info structure are left-overs from the move to the Phy Abstraction Layer subsystem. They can be safely removed.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

[snip]

Is there something wrong with the patch ?

No, the patch looks OK. However, note that non-PPC_CPM_NEW_BINDING code should go away altogether soon.

also any such patch should normally go via netdev as its to a network driver.

- k