ARM: imx5: add missing put_device() call in imx_suspend_alloc_ocram()
authoryu kuai <yukuai3@huawei.com>
Thu, 4 Jun 2020 12:42:06 +0000 (20:42 +0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 24 Jun 2020 01:24:34 +0000 (09:24 +0800)
commit586745f1598ccf71b0a5a6df2222dee0a865954e
treeeed34ea24e8d4eb0fbf94539a4f24a429b87837e
parentc95c9693b112f312b59c5d100fd09a1349970fab
ARM: imx5: add missing put_device() call in imx_suspend_alloc_ocram()

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

Fixes: 1579c7b9fe01 ("ARM: imx53: Set DDR pins to high impedance when in suspend to RAM.")
Signed-off-by: yu kuai <yukuai3@huawei.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/pm-imx5.c