Преглед изворни кода

[velocity] Fix usage of mii_read() and mii_write()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown пре 6 година
родитељ
комит
285e3e5287
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4
    4
      src/drivers/net/velocity.c

+ 4
- 4
src/drivers/net/velocity.c Прегледај датотеку

@@ -194,14 +194,14 @@ static void velocity_set_link ( struct velocity_nic *vlc ) {
194 194
 	int tmp;
195 195
 
196 196
 	/* Advertise 1000MBit */
197
-	tmp = velocity_mii_read ( &vlc->mii, MII_CTRL1000 );
197
+	tmp = mii_read ( &vlc->mii, MII_CTRL1000 );
198 198
 	tmp |= ADVERTISE_1000FULL | ADVERTISE_1000HALF;
199
-	velocity_mii_write ( &vlc->mii, MII_CTRL1000, tmp );
199
+	mii_write ( &vlc->mii, MII_CTRL1000, tmp );
200 200
 
201 201
 	/* Enable GBit operation in MII Control Register */
202
-	tmp = velocity_mii_read ( &vlc->mii, MII_BMCR );
202
+	tmp = mii_read ( &vlc->mii, MII_BMCR );
203 203
 	tmp |= BMCR_SPEED1000;
204
-	velocity_mii_write ( &vlc->mii, MII_BMCR, tmp );
204
+	mii_write ( &vlc->mii, MII_BMCR, tmp );
205 205
 }
206 206
 
207 207
 /******************************************************************************

Loading…
Откажи
Сачувај