omap mailbox: fix empty struct device for omap_mbox
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Tue, 24 Mar 2009 01:07:24 +0000 (18:07 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 24 Mar 2009 01:07:24 +0000 (18:07 -0700)
commitf48cca87703a4f4c372f1519e72e0fd6acb70d54
tree98ab2c2be89b005b704b2890122154129779fb08
parent94fc58c6da019257680ae711c061cb403582a362
omap mailbox: fix empty struct device for omap_mbox

Since "mbox->dev" doesn't exist and isn't created either at
registration, this patch will create "struct device", which belongs to
"omap-mailbox" class and set this pointer for the member of
"struct omap_mbox".

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
arch/arm/plat-omap/include/mach/mailbox.h
arch/arm/plat-omap/mailbox.c