]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf23211037c429b58220b343725b2d78002ed418e
tree7ddb87ada032fda1a70d16b703c106007db7af8a
parent9c7dbb7d6df621f121879df46eee47e975c7ad8c
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: 3587b6dff5ec ("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