power: reset: linkstation-poweroff: add missing put_device()
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Fri, 16 Oct 2020 18:22:37 +0000 (20:22 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Dec 2020 14:59:49 +0000 (15:59 +0100)
commit1027a42c25cbf8cfc4ade6503c5110aae04866af
tree30b0130c0bda27e401387ef938c30a771fe19a14
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
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>
drivers/power/reset/linkstation-poweroff.c