1 From 555baec974ede81e616ca88ac6d3fca09239368f Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Tue, 18 Jul 2017 13:18:01 +0200
4 Subject: [PATCH 5/6] bcm63xx_enet: drop unneeded NULL phy_clk check
6 clk_disable and clk_unprepare are NULL-safe, so need to duplicate the
7 NULL check of the functions.
9 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
11 drivers/net/ethernet/broadcom/bcm63xx_enet.c | 7 ++-----
12 1 file changed, 2 insertions(+), 5 deletions(-)
14 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
15 +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
16 @@ -1905,8 +1905,7 @@ out_free_mdio:
18 /* turn off mdc clock */
19 enet_writel(priv, 0, ENET_MIISC_REG);
21 - clk_disable_unprepare(priv->phy_clk);
22 + clk_disable_unprepare(priv->phy_clk);
25 clk_disable_unprepare(priv->mac_clk);
26 @@ -1945,9 +1944,7 @@ static int bcm_enet_remove(struct platfo
29 /* disable hw block clocks */
31 - clk_disable_unprepare(priv->phy_clk);
33 + clk_disable_unprepare(priv->phy_clk);
34 clk_disable_unprepare(priv->mac_clk);