diff options
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap1/mailbox.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 10 |
3 files changed, 9 insertions, 9 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 */ |
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 763272cb7917..8c1070c8e5b7 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -131,7 +131,7 @@ static int omap2_mbox_startup(struct omap_mbox *mbox) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | l = mbox_read_reg(MAILBOX_REVISION); | 133 | l = mbox_read_reg(MAILBOX_REVISION); |
134 | pr_info("omap mailbox rev %d.%d\n", (l & 0xf0) >> 4, (l & 0x0f)); | 134 | pr_debug("omap mailbox rev %d.%d\n", (l & 0xf0) >> 4, (l & 0x0f)); |
135 | 135 | ||
136 | if (cpu_is_omap44xx()) | 136 | if (cpu_is_omap44xx()) |
137 | l = OMAP4_SMARTIDLE; | 137 | l = OMAP4_SMARTIDLE; |
@@ -300,8 +300,6 @@ static struct omap_mbox2_priv omap2_mbox_dsp_priv = { | |||
300 | .irqdisable = MAILBOX_IRQENABLE(0), | 300 | .irqdisable = MAILBOX_IRQENABLE(0), |
301 | }; | 301 | }; |
302 | 302 | ||
303 | |||
304 | |||
305 | /* OMAP4 specific data structure. Use the cpu_is_omap4xxx() | 303 | /* OMAP4 specific data structure. Use the cpu_is_omap4xxx() |
306 | to use this*/ | 304 | to use this*/ |
307 | static struct omap_mbox2_priv omap2_mbox_1_priv = { | 305 | static struct omap_mbox2_priv omap2_mbox_1_priv = { |
@@ -357,7 +355,6 @@ struct omap_mbox mbox_2_info = { | |||
357 | }; | 355 | }; |
358 | EXPORT_SYMBOL(mbox_2_info); | 356 | EXPORT_SYMBOL(mbox_2_info); |
359 | 357 | ||
360 | |||
361 | #if defined(CONFIG_ARCH_OMAP2420) /* IVA */ | 358 | #if defined(CONFIG_ARCH_OMAP2420) /* IVA */ |
362 | static struct omap_mbox2_priv omap2_mbox_iva_priv = { | 359 | static struct omap_mbox2_priv omap2_mbox_iva_priv = { |
363 | .tx_fifo = { | 360 | .tx_fifo = { |
@@ -443,6 +440,11 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev) | |||
443 | #endif | 440 | #endif |
444 | return 0; | 441 | return 0; |
445 | 442 | ||
443 | #if defined(CONFIG_ARCH_OMAP2420) /* IVA */ | ||
444 | err_iva1: | ||
445 | omap_mbox_unregister(&mbox_dsp_info); | ||
446 | #endif | ||
447 | |||
446 | err_dsp: | 448 | err_dsp: |
447 | iounmap(mbox_base); | 449 | iounmap(mbox_base); |
448 | return ret; | 450 | return ret; |