]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: phy: phylink: Release link GPIO
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 10 May 2018 20:17:30 +0000 (13:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2018 16:03:05 +0000 (12:03 -0400)
commitdaab3349ad1a69663ccad278ed71d55974d104b4
tree22f316ea48ecc58fc63732f7de00e9cff6566d56
parentbb322a90383603aaf71ad882a7c5a48b39a02603
net: phy: phylink: Release link GPIO

We are not releasing the link GPIO descriptor with gpiod_put() which results in
subsequent probing to get -EBUSY when calling fwnode_get_named_gpiod(). Fix this
by doing the release in phylink_destroy().

Fixes: 9525ae83959b ("phylink: add phylink infrastructure")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c