Message ID | 21115613.dmes8fMApM@tool |
---|---|
State | Accepted |
Commit | 1027a42c25cbf8cfc4ade6503c5110aae04866af |
Headers | show |
Series | power: reset: linkstation-poweroff: add missing put_device() | expand |
diff --git a/drivers/power/reset/linkstation-poweroff.c b/drivers/power/reset/linkstation-poweroff.c index 39e89baed..f1e843df0 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;
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> --- drivers/power/reset/linkstation-poweroff.c | 1 + 1 file changed, 1 insertion(+)