mirror of
https://github.com/torvalds/linux
synced 2024-10-12 06:16:26 +00:00
staging: mt7621-eth: Add missing blank lines after declarations
Add missing blank lines after declarations to solve checkpatch.pl errors. Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Reviewed-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
42d82b5015
commit
fb6d1cb439
|
@ -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 */
|
/* This is copied from mt7530_apply_config in libreCMC driver */
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < MT7530_NUM_PORTS; i++)
|
for (i = 0; i < MT7530_NUM_PORTS; i++)
|
||||||
mt7530_mdio_w32(gsw, REG_ESW_PORT_PCR(i), 0x00400000);
|
mt7530_mdio_w32(gsw, REG_ESW_PORT_PCR(i), 0x00400000);
|
||||||
|
|
||||||
|
|
|
@ -131,6 +131,7 @@ static int mtk_phy_connect(struct mtk_mac *mac)
|
||||||
}
|
}
|
||||||
} else if (eth->mii_bus) {
|
} else if (eth->mii_bus) {
|
||||||
struct phy_device *phy;
|
struct phy_device *phy;
|
||||||
|
|
||||||
phy = mdiobus_get_phy(eth->mii_bus, i);
|
phy = mdiobus_get_phy(eth->mii_bus, i);
|
||||||
if (phy) {
|
if (phy) {
|
||||||
phy_init(eth, mac, phy);
|
phy_init(eth, mac, phy);
|
||||||
|
@ -162,6 +163,7 @@ static void mtk_phy_disconnect(struct mtk_mac *mac)
|
||||||
phy_disconnect(eth->phy->phy[i]);
|
phy_disconnect(eth->phy->phy[i]);
|
||||||
} else if (eth->mii_bus) {
|
} else if (eth->mii_bus) {
|
||||||
struct phy_device *phy = mdiobus_get_phy(eth->mii_bus, i);
|
struct phy_device *phy = mdiobus_get_phy(eth->mii_bus, i);
|
||||||
|
|
||||||
if (phy)
|
if (phy)
|
||||||
phy_detach(phy);
|
phy_detach(phy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue