diff options
Diffstat (limited to 'arch/arm/mach-omap2/mailbox.c')
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 42dbfa46e656..40ddecab93a9 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -181,7 +181,7 @@ static int omap2_mbox_fifo_full(struct omap_mbox *mbox) | |||
181 | static void omap2_mbox_enable_irq(struct omap_mbox *mbox, | 181 | static void omap2_mbox_enable_irq(struct omap_mbox *mbox, |
182 | omap_mbox_type_t irq) | 182 | omap_mbox_type_t irq) |
183 | { | 183 | { |
184 | struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; | 184 | struct omap_mbox2_priv *p = mbox->priv; |
185 | u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 185 | u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
186 | 186 | ||
187 | l = mbox_read_reg(p->irqenable); | 187 | l = mbox_read_reg(p->irqenable); |
@@ -192,7 +192,7 @@ static void omap2_mbox_enable_irq(struct omap_mbox *mbox, | |||
192 | static void omap2_mbox_disable_irq(struct omap_mbox *mbox, | 192 | static void omap2_mbox_disable_irq(struct omap_mbox *mbox, |
193 | omap_mbox_type_t irq) | 193 | omap_mbox_type_t irq) |
194 | { | 194 | { |
195 | struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; | 195 | struct omap_mbox2_priv *p = mbox->priv; |
196 | u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 196 | u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
197 | l = mbox_read_reg(p->irqdisable); | 197 | l = mbox_read_reg(p->irqdisable); |
198 | l &= ~bit; | 198 | l &= ~bit; |
@@ -202,7 +202,7 @@ static void omap2_mbox_disable_irq(struct omap_mbox *mbox, | |||
202 | static void omap2_mbox_ack_irq(struct omap_mbox *mbox, | 202 | static void omap2_mbox_ack_irq(struct omap_mbox *mbox, |
203 | omap_mbox_type_t irq) | 203 | omap_mbox_type_t irq) |
204 | { | 204 | { |
205 | struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; | 205 | struct omap_mbox2_priv *p = mbox->priv; |
206 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 206 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
207 | 207 | ||
208 | mbox_write_reg(bit, p->irqstatus); | 208 | mbox_write_reg(bit, p->irqstatus); |
@@ -214,7 +214,7 @@ static void omap2_mbox_ack_irq(struct omap_mbox *mbox, | |||
214 | static int omap2_mbox_is_irq(struct omap_mbox *mbox, | 214 | static int omap2_mbox_is_irq(struct omap_mbox *mbox, |
215 | omap_mbox_type_t irq) | 215 | omap_mbox_type_t irq) |
216 | { | 216 | { |
217 | struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; | 217 | struct omap_mbox2_priv *p = mbox->priv; |
218 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 218 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
219 | u32 enable = mbox_read_reg(p->irqenable); | 219 | u32 enable = mbox_read_reg(p->irqenable); |
220 | u32 status = mbox_read_reg(p->irqstatus); | 220 | u32 status = mbox_read_reg(p->irqstatus); |