net: phy: at803x: disable vddio regulator
authorMichael Walle <michael@walle.cc>
Thu, 30 Jan 2020 17:54:02 +0000 (18:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Jan 2020 15:54:48 +0000 (07:54 -0800)
commit2318ca8aef3877da2b16b92edce47a497370a86e
tree7ddb87ada032fda1a70d16b703c106007db7af8a
parent2e1bf3a76576eebc787d8882c3f91fa4ec743efc
net: phy: at803x: disable vddio regulator

The probe() might enable a VDDIO regulator, which needs to be disabled
again before calling regulator_put(). Add a remove() function.

Fixes: 2f664823a470 ("net: phy: at803x: add device tree binding")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/at803x.c