From: Kamal Heib Date: Mon, 7 May 2018 09:05:57 +0000 (+0300) Subject: staging: mt7621-eth: Add missing blank lines after declarations X-Git-Tag: v4.19~841^2~227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb6d1cb43908d2674ef268ee6511f3764e91039c;p=platform%2Fkernel%2Flinux-rpi3.git 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 Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-eth/gsw_mt7621.c b/drivers/staging/mt7621-eth/gsw_mt7621.c index 04af39c..86138a3 100644 --- a/drivers/staging/mt7621-eth/gsw_mt7621.c +++ b/drivers/staging/mt7621-eth/gsw_mt7621.c @@ -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); diff --git a/drivers/staging/mt7621-eth/mdio.c b/drivers/staging/mt7621-eth/mdio.c index c6db11a..943ed2f 100644 --- a/drivers/staging/mt7621-eth/mdio.c +++ b/drivers/staging/mt7621-eth/mdio.c @@ -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); @@ -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); }