ARM: davinci: PM: Free resources in error handling path in 'davinci_pm_init'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 13 May 2017 11:40:05 +0000 (13:40 +0200)
committerSekhar Nori <nsekhar@ti.com>
Wed, 17 May 2017 09:21:49 +0000 (14:51 +0530)
commitf3f6cc814f9cb61cfb738af2b126a8bf19e5ab4c
tree1ae54eca73f4911308398d7eb02d2e2c2500b99c
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ARM: davinci: PM: Free resources in error handling path in 'davinci_pm_init'

If 'sram_alloc' fails, we need to free already allocated resources.

Fixes: aa9aa1ec2df6 ("ARM: davinci: PM: rework init, remove platform device")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/pm.c