]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 17 Jul 2020 22:58:07 +0000 (00:58 +0200)
commit2fddbbc5b094ed3e224bb692b3218086361a0aaa
treeea18cd41e9cc7e7c235a9de6222c300301df1819
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
ARM: at91: pm: add missing put_device() call in at91_pm_sram_init()

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: ad8d4e135950 ("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
arch/arm/mach-at91/pm.c