ARM: at91: pm: add missing put_device() call in at91_pm_sram_init()
authoryu kuai <yukuai3@huawei.com>
Thu, 4 Jun 2020 12:33:01 +0000 (20:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 08:52:58 +0000 (10:52 +0200)
commita9d3d304b941737d937dc5f7bd4e39a3fc75e7d2
treeaf26be28515ed014e7f00cbaf0d43aefe2fd496b
parent0b116a97932a4b84d948f3bcc24d12267316d3a1
ARM: at91: pm: add missing put_device() call in at91_pm_sram_init()

[ Upstream commit f87a4f022c44e5b87e842a9f3e644fba87e8385f ]

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

Fixes: d2e467905596 ("ARM: at91: pm: use the mmio-sram pool to access SRAM")
Signed-off-by: yu kuai <yukuai3@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200604123301.3905837-1-yukuai3@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-at91/pm.c