]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP2+: mailbox: fix lookups for multiple mailboxes
authorKevin Hilman <khilman@ti.com>
Fri, 11 Feb 2011 19:56:43 +0000 (19:56 +0000)
committerTony Lindgren <tony@atomide.com>
Mon, 14 Feb 2011 21:19:41 +0000 (13:19 -0800)
commitbf4037ae0c0c8cff4bec0adfb5981ccecb8d3f7b
tree0e07e684338994dfdb48df1a80d1ac97f7b35402
parente2d9fe5fb49a832920e5ef9e3be2f4a6496df6f1
OMAP2+: mailbox: fix lookups for multiple mailboxes

The pointer math in omap_mbox_get() is not quite right, and leads to
passing NULL to strcmp() when searching for an mbox that is not first
in the list.

Convert to using array indexing as is done in all the other functions
which walk the mbox list.

Tested on OMAP2420/n810, OMAP3630/zoom3, OMAP4430/Blaze

Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/mailbox.c