]> git.karo-electronics.de Git - linux-beck.git/commit
OMAP3/4: l3: fix omap3_l3_probe error path
authoromar ramirez <omar.ramirez@ti.com>
Mon, 18 Apr 2011 16:39:41 +0000 (16:39 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 3 May 2011 09:38:01 +0000 (02:38 -0700)
commit7529b703869d59e799a0c0eb4f3df7a418f7dc99
treee3a75491d78a829a12e416d8bff90bb47c804575
parent11383a9bcc213cd2b55e2aef863ef2a8b3d7b62c
OMAP3/4: l3: fix omap3_l3_probe error path

l3_smx:
- Add missing free_irq and remove an empty goto label.

l3_noc:
- If kzalloc fails driver shouldn't continue with a NULL pointer.
- Add missing free_irq and remove empty goto labels.
- Safe to assume that if we reached the end point of execution
  without errors, then return value is 0, so replacing instead
  another goto.

Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_l3_noc.c
arch/arm/mach-omap2/omap_l3_smx.c