omap: mailbox: check iomem resource before dereferencing it
authorSuman Anna <s-anna@ti.com>
Sat, 2 Feb 2013 02:24:51 +0000 (20:24 -0600)
committerSuman Anna <s-anna@ti.com>
Tue, 11 Jun 2013 14:44:02 +0000 (09:44 -0500)
commita41677c6c5160f031038951fb94defeb93fe8160
treefdc800339a983bb153a67d52cd155a383c67e0d2
parent317ddd256b9c24b0d78fa8018f80f1e495481a10
omap: mailbox: check iomem resource before dereferencing it

Add a NULL check for iomem resource in mailbox probe functions.

Signed-off-by: Fernando Guzman Lugo <lugo.fernando@gmail.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
arch/arm/mach-omap1/mailbox.c
arch/arm/mach-omap2/mailbox.c