diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-06-11 11:51:37 -0400 |
---|---|---|
committer | Hiroshi DOYU <Hiroshi.DOYU@nokia.com> | 2010-08-04 08:50:17 -0400 |
commit | 909f9dc71e31e77b6a354b54141e7e9905281156 (patch) | |
tree | 223a4624373aee17e653f836734d45b3680d6478 /arch/arm/mach-omap1 | |
parent | 6b23398591a51943dbf08f30cfc2475a895cb1b4 (diff) |
omap: mailbox: trivial cleanups
And fix a few compilation warnings.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap1/mailbox.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 379100c17639..462b59c5d87a 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -73,12 +73,10 @@ static inline void omap_init_rtc(void) {} | |||
73 | # define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1 | 73 | # define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1 |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #define OMAP1_MBOX_BASE OMAP16XX_MAILBOX_BASE | ||
77 | |||
78 | static struct resource mbox_resources[] = { | 76 | static struct resource mbox_resources[] = { |
79 | { | 77 | { |
80 | .start = OMAP1_MBOX_BASE, | 78 | .start = OMAP16XX_MAILBOX_BASE, |
81 | .end = OMAP1_MBOX_BASE + OMAP1_MBOX_SIZE, | 79 | .end = OMAP16XX_MAILBOX_BASE + OMAP1_MBOX_SIZE, |
82 | .flags = IORESOURCE_MEM, | 80 | .flags = IORESOURCE_MEM, |
83 | }, | 81 | }, |
84 | { | 82 | { |
diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c index 4f5b3da3d559..15bf2a29bbcd 100644 --- a/arch/arm/mach-omap1/mailbox.c +++ b/arch/arm/mach-omap1/mailbox.c | |||
@@ -83,7 +83,7 @@ static int omap1_mbox_fifo_full(struct omap_mbox *mbox) | |||
83 | struct omap_mbox1_fifo *fifo = | 83 | struct omap_mbox1_fifo *fifo = |
84 | &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; | 84 | &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; |
85 | 85 | ||
86 | return (mbox_read_reg(fifo->flag)); | 86 | return mbox_read_reg(fifo->flag); |
87 | } | 87 | } |
88 | 88 | ||
89 | /* irq */ | 89 | /* irq */ |