aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/pm3393.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/chelsio/pm3393.c')
-rw-r--r--drivers/net/chelsio/pm3393.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/chelsio/pm3393.c b/drivers/net/chelsio/pm3393.c
index 63cabeb98afe..76a7ca9e0947 100644
--- a/drivers/net/chelsio/pm3393.c
+++ b/drivers/net/chelsio/pm3393.c
@@ -455,8 +455,8 @@ static void pm3393_rmon_update(struct adapter *adapter, u32 offs, u64 *val,
455static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac, 455static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac,
456 int flag) 456 int flag)
457{ 457{
458 u64 ro; 458 u64 ro;
459 u32 val0, val1, val2, val3; 459 u32 val0, val1, val2, val3;
460 460
461 /* Snap the counters */ 461 /* Snap the counters */
462 pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL, 462 pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL,
@@ -534,9 +534,9 @@ static int pm3393_macaddress_set(struct cmac *cmac, u8 ma[6])
534 /* Store local copy */ 534 /* Store local copy */
535 memcpy(cmac->instance->mac_addr, ma, 6); 535 memcpy(cmac->instance->mac_addr, ma, 6);
536 536
537 lo = ((u32) ma[1] << 8) | (u32) ma[0]; 537 lo = ((u32) ma[1] << 8) | (u32) ma[0];
538 mid = ((u32) ma[3] << 8) | (u32) ma[2]; 538 mid = ((u32) ma[3] << 8) | (u32) ma[2];
539 hi = ((u32) ma[5] << 8) | (u32) ma[4]; 539 hi = ((u32) ma[5] << 8) | (u32) ma[4];
540 540
541 /* Disable Rx/Tx MAC before configuring it. */ 541 /* Disable Rx/Tx MAC before configuring it. */
542 if (enabled) 542 if (enabled)