Skip to content

Commit

Permalink
r6040: place comments before code
Browse files Browse the repository at this point in the history
checkpatch.pl complained about the line exceding 80 columns, and the
comment was actually on the same line as the code, fix that.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jan 4, 2012
1 parent 853d5dc commit 4852968
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/net/ethernet/rdc/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,10 @@ static void r6040_mac_address(struct net_device *dev)
void __iomem *ioaddr = lp->base;
u16 *adrp;

/* MAC operation register */
iowrite16(MAC_RST, ioaddr + MCR1); /* Reset MAC */
iowrite16(MAC_SM_RST, ioaddr + MAC_SM); /* Reset internal state machine */
/* Reset MAC */
iowrite16(MAC_RST, ioaddr + MCR1);
/* Reset internal state machine */
iowrite16(MAC_SM_RST, ioaddr + MAC_SM);
iowrite16(0, ioaddr + MAC_SM);
mdelay(5);

Expand Down

0 comments on commit 4852968

Please sign in to comment.