]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Allow kernel to boot even if GPMC fails to reserve memory
authorJon Hunter <jon-hunter@ti.com>
Wed, 17 Oct 2012 14:41:25 +0000 (09:41 -0500)
committerTony Lindgren <tony@atomide.com>
Wed, 17 Oct 2012 16:01:14 +0000 (09:01 -0700)
commit8ab129d59e804ae32ad82bff8243b2a0423069b5
tree254fb2179b4ba243557177947d99ab87b29a7cc4
parent35b10155cac531c4c9c434ac3e927a0e906f97e7
ARM: OMAP2+: Allow kernel to boot even if GPMC fails to reserve memory

Currently, if the GPMC driver fails to reserve memory when probed we will
call BUG() and the kernel will not boot. Instead of calling BUG(), return
an error from probe and allow kernel to boot.

Boot tested on AM335x beagle bone board and OMAP4430 Panda board.

V2 changes:
- Ensure that clock and memory resources are released on error.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c