MIPS: OCTEON: add missing put_device() call in dwc3_octeon_device_init()
authorYu Kuai <yukuai3@huawei.com>
Tue, 21 Jul 2020 13:47:18 +0000 (21:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:59 +0000 (08:23 +0200)
commit4a37a73035d7fc1a35d814eb4e18aa322fac1f35
tree6fdc91d4154281f12119192c6dafec70630c6bfe
parent409025b253ecc38608ccc561d7bf884c3b2347e3
MIPS: OCTEON: add missing put_device() call in dwc3_octeon_device_init()

[ Upstream commit e8b9fc10f2615b9a525fce56981e40b489528355 ]

if of_find_device_by_node() succeed, dwc3_octeon_device_init() doesn't have
a corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: 93e502b3c2d4 ("MIPS: OCTEON: Platform support for OCTEON III USB controller")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/cavium-octeon/octeon-usb.c