[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <baff8a12-c8e3-8177-8df0-8b52016a7679@gmail.com>
Date: Mon, 30 Oct 2017 11:58:50 -0700
From: Doug Berger <opendmb@...il.com>
To: Wei Yongjun <weiyongjun1@...wei.com>,
Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: bcmgenet: Avoid calling
platform_device_put() twice in bcmgenet_mii_exit()
On 10/27/2017 10:05 PM, Wei Yongjun wrote:
> Remove platform_device_put() call after platform_device_unregister()
> from function bcmgenet_mii_exit(), otherwise, we will call
> platform_device_put() twice.
>
> Fixes: 9a4e79697009 ("net: bcmgenet: utilize generic Broadcom UniMAC
> MDIO controller driver")
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
> drivers/net/ethernet/broadcom/genet/bcmmii.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c
> index ba3fcfd..5333274 100644
> --- a/drivers/net/ethernet/broadcom/genet/bcmmii.c
> +++ b/drivers/net/ethernet/broadcom/genet/bcmmii.c
> @@ -571,5 +571,4 @@ void bcmgenet_mii_exit(struct net_device *dev)
> of_phy_deregister_fixed_link(dn);
> of_node_put(priv->phy_dn);
> platform_device_unregister(priv->mii_pdev);
> - platform_device_put(priv->mii_pdev);
> }
>
Acked-by: Doug Berger <opendmb@...il.com>
Powered by blists - more mailing lists