phy: cpcap-usb: Fix warning for missing regulator_disable
authorTony Lindgren <tony@atomide.com>
Wed, 30 Dec 2020 10:21:05 +0000 (12:21 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 4 Jan 2021 07:29:56 +0000 (12:59 +0530)
commit764257d9069a9c19758b626cc1ba4ae079335d9e
treeda2b14a705fb3536575a083daea1e56c9ea5376c
parentef019c5daf032dce0b95ed4d45bfec93c4fbcb9f
phy: cpcap-usb: Fix warning for missing regulator_disable

On deferred probe, we will get the following splat:

cpcap-usb-phy cpcap-usb-phy.0: could not initialize VBUS or ID IIO: -517
WARNING: CPU: 0 PID: 21 at drivers/regulator/core.c:2123 regulator_put+0x68/0x78
...
(regulator_put) from [<c068ebf0>] (release_nodes+0x1b4/0x1fc)
(release_nodes) from [<c068a9a4>] (really_probe+0x104/0x4a0)
(really_probe) from [<c068b034>] (driver_probe_device+0x58/0xb4)

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20201230102105.11826-1-tony@atomide.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/motorola/phy-cpcap-usb.c