diff options
author | Hiroshi DOYU <Hiroshi.DOYU@nokia.com> | 2009-03-23 21:07:24 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-03-23 21:07:24 -0400 |
commit | f48cca87703a4f4c372f1519e72e0fd6acb70d54 (patch) | |
tree | 98ab2c2be89b005b704b2890122154129779fb08 /arch/arm/plat-omap/include/mach/mailbox.h | |
parent | 94fc58c6da019257680ae711c061cb403582a362 (diff) |
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>
Diffstat (limited to 'arch/arm/plat-omap/include/mach/mailbox.h')
-rw-r--r-- | arch/arm/plat-omap/include/mach/mailbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/mach/mailbox.h b/arch/arm/plat-omap/include/mach/mailbox.h index 7cbed9332e16..577db6852f43 100644 --- a/arch/arm/plat-omap/include/mach/mailbox.h +++ b/arch/arm/plat-omap/include/mach/mailbox.h | |||
@@ -53,7 +53,7 @@ struct omap_mbox { | |||
53 | 53 | ||
54 | mbox_msg_t seq_snd, seq_rcv; | 54 | mbox_msg_t seq_snd, seq_rcv; |
55 | 55 | ||
56 | struct device dev; | 56 | struct device *dev; |
57 | 57 | ||
58 | struct omap_mbox *next; | 58 | struct omap_mbox *next; |
59 | void *priv; | 59 | void *priv; |
@@ -67,7 +67,7 @@ void omap_mbox_init_seq(struct omap_mbox *); | |||
67 | struct omap_mbox *omap_mbox_get(const char *); | 67 | struct omap_mbox *omap_mbox_get(const char *); |
68 | void omap_mbox_put(struct omap_mbox *); | 68 | void omap_mbox_put(struct omap_mbox *); |
69 | 69 | ||
70 | int omap_mbox_register(struct omap_mbox *); | 70 | int omap_mbox_register(struct device *parent, struct omap_mbox *); |
71 | int omap_mbox_unregister(struct omap_mbox *); | 71 | int omap_mbox_unregister(struct omap_mbox *); |
72 | 72 | ||
73 | #endif /* MAILBOX_H */ | 73 | #endif /* MAILBOX_H */ |