Skip to content

Commit

Permalink
staging: mt7621-eth: Add missing blank lines after declarations
Browse files Browse the repository at this point in the history
Add missing blank lines after declarations to solve checkpatch.pl errors.

Signed-off-by: Kamal Heib <[email protected]>
Reviewed-by: NeilBrown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Kamalheib authored and gregkh committed May 8, 2018
1 parent 42d82b5 commit fb6d1cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/mt7621-eth/gsw_mt7621.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ static void mt7621_hw_init(struct mtk_eth *eth, struct mt7620_gsw *gsw,
/* This is copied from mt7530_apply_config in libreCMC driver */
{
int i;

for (i = 0; i < MT7530_NUM_PORTS; i++)
mt7530_mdio_w32(gsw, REG_ESW_PORT_PCR(i), 0x00400000);

Expand Down
2 changes: 2 additions & 0 deletions drivers/staging/mt7621-eth/mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static int mtk_phy_connect(struct mtk_mac *mac)
}
} else if (eth->mii_bus) {
struct phy_device *phy;

phy = mdiobus_get_phy(eth->mii_bus, i);
if (phy) {
phy_init(eth, mac, phy);
Expand Down Expand Up @@ -162,6 +163,7 @@ static void mtk_phy_disconnect(struct mtk_mac *mac)
phy_disconnect(eth->phy->phy[i]);
} else if (eth->mii_bus) {
struct phy_device *phy = mdiobus_get_phy(eth->mii_bus, i);

if (phy)
phy_detach(phy);
}
Expand Down

0 comments on commit fb6d1cb

Please sign in to comment.