]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 24 Jul 2020 09:06:58 +0000 (11:06 +0200)
commit9848c10345157d80618f28fdc3db42cc9c59e7b4
treebc65caa520e2cffb07745fa64bd2efe66e8a1744
parent6ed2f5c6a3e6fe9cfdee9d761d3de3b7c6d7a0f4
MIPS: OCTEON: add missing put_device() call in dwc3_octeon_device_init()

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: 2ba2484f56fb ("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>
arch/mips/cavium-octeon/octeon-usb.c