diff options
author | Daniel González Cabanelas <dgcbueu@gmail.com> | 2020-10-16 20:22:37 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-12-29 15:59:49 +0100 |
commit | 1027a42c25cbf8cfc4ade6503c5110aae04866af (patch) | |
tree | 30b0130c0bda27e401387ef938c30a771fe19a14 /drivers/power/reset | |
parent | Linux 5.11-rc1 (diff) | |
download | linux-1027a42c25cbf8cfc4ade6503c5110aae04866af.tar.xz linux-1027a42c25cbf8cfc4ade6503c5110aae04866af.zip |
power: reset: linkstation-poweroff: add missing put_device()
The of_mdio_find_bus() takes a reference to the underlying device
structure, we should release that reference using a put_device() call.
Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/reset')
-rw-r--r-- | drivers/power/reset/linkstation-poweroff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/reset/linkstation-poweroff.c b/drivers/power/reset/linkstation-poweroff.c index 39e89baedb5f..f1e843df0e16 100644 --- a/drivers/power/reset/linkstation-poweroff.c +++ b/drivers/power/reset/linkstation-poweroff.c @@ -113,6 +113,7 @@ static int __init linkstation_poweroff_init(void) return -EPROBE_DEFER; phydev = phy_find_first(bus); + put_device(&bus->dev); if (!phydev) return -EPROBE_DEFER; |