diff options
author | Suman Anna <s-anna@ti.com> | 2013-06-07 17:27:45 -0400 |
---|---|---|
committer | Suman Anna <s-anna@ti.com> | 2013-06-11 12:41:29 -0400 |
commit | f91ca05ff490421d348e27baa2363a49547dee57 (patch) | |
tree | e8a97c9be877cea2bc386f435159a5d1fe53ed37 /arch | |
parent | ecf305cf81c68446508c283015694e304939be5f (diff) |
omap: mailbox: correct the argument type for irq ops
The argument type used in the actual individual omap_mbox_ops
for irqs should be omap_mbox_irq_t instead of omap_mbox_type_t.
Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap1/mailbox.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 15 |
2 files changed, 7 insertions, 14 deletions
diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c index a343d5f9a50a..7246a5258292 100644 --- a/arch/arm/mach-omap1/mailbox.c +++ b/arch/arm/mach-omap1/mailbox.c | |||
@@ -86,21 +86,21 @@ static int omap1_mbox_fifo_full(struct omap_mbox *mbox) | |||
86 | 86 | ||
87 | /* irq */ | 87 | /* irq */ |
88 | static void | 88 | static void |
89 | omap1_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) | 89 | omap1_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
90 | { | 90 | { |
91 | if (irq == IRQ_RX) | 91 | if (irq == IRQ_RX) |
92 | enable_irq(mbox->irq); | 92 | enable_irq(mbox->irq); |
93 | } | 93 | } |
94 | 94 | ||
95 | static void | 95 | static void |
96 | omap1_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) | 96 | omap1_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
97 | { | 97 | { |
98 | if (irq == IRQ_RX) | 98 | if (irq == IRQ_RX) |
99 | disable_irq(mbox->irq); | 99 | disable_irq(mbox->irq); |
100 | } | 100 | } |
101 | 101 | ||
102 | static int | 102 | static int |
103 | omap1_mbox_is_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) | 103 | omap1_mbox_is_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
104 | { | 104 | { |
105 | if (irq == IRQ_TX) | 105 | if (irq == IRQ_TX) |
106 | return 0; | 106 | return 0; |
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 9fe0bf2fef33..b01aae69010f 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -61,9 +61,6 @@ struct omap_mbox2_priv { | |||
61 | unsigned long irqdisable; | 61 | unsigned long irqdisable; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static void omap2_mbox_enable_irq(struct omap_mbox *mbox, | ||
65 | omap_mbox_type_t irq); | ||
66 | |||
67 | static inline unsigned int mbox_read_reg(size_t ofs) | 64 | static inline unsigned int mbox_read_reg(size_t ofs) |
68 | { | 65 | { |
69 | return __raw_readl(mbox_base + ofs); | 66 | return __raw_readl(mbox_base + ofs); |
@@ -124,8 +121,7 @@ static int omap2_mbox_fifo_full(struct omap_mbox *mbox) | |||
124 | } | 121 | } |
125 | 122 | ||
126 | /* Mailbox IRQ handle functions */ | 123 | /* Mailbox IRQ handle functions */ |
127 | static void omap2_mbox_enable_irq(struct omap_mbox *mbox, | 124 | static void omap2_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
128 | omap_mbox_type_t irq) | ||
129 | { | 125 | { |
130 | struct omap_mbox2_priv *p = mbox->priv; | 126 | struct omap_mbox2_priv *p = mbox->priv; |
131 | u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 127 | u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
@@ -135,8 +131,7 @@ static void omap2_mbox_enable_irq(struct omap_mbox *mbox, | |||
135 | mbox_write_reg(l, p->irqenable); | 131 | mbox_write_reg(l, p->irqenable); |
136 | } | 132 | } |
137 | 133 | ||
138 | static void omap2_mbox_disable_irq(struct omap_mbox *mbox, | 134 | static void omap2_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
139 | omap_mbox_type_t irq) | ||
140 | { | 135 | { |
141 | struct omap_mbox2_priv *p = mbox->priv; | 136 | struct omap_mbox2_priv *p = mbox->priv; |
142 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 137 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
@@ -147,8 +142,7 @@ static void omap2_mbox_disable_irq(struct omap_mbox *mbox, | |||
147 | mbox_write_reg(bit, p->irqdisable); | 142 | mbox_write_reg(bit, p->irqdisable); |
148 | } | 143 | } |
149 | 144 | ||
150 | static void omap2_mbox_ack_irq(struct omap_mbox *mbox, | 145 | static void omap2_mbox_ack_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
151 | omap_mbox_type_t irq) | ||
152 | { | 146 | { |
153 | struct omap_mbox2_priv *p = mbox->priv; | 147 | struct omap_mbox2_priv *p = mbox->priv; |
154 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 148 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
@@ -159,8 +153,7 @@ static void omap2_mbox_ack_irq(struct omap_mbox *mbox, | |||
159 | mbox_read_reg(p->irqstatus); | 153 | mbox_read_reg(p->irqstatus); |
160 | } | 154 | } |
161 | 155 | ||
162 | static int omap2_mbox_is_irq(struct omap_mbox *mbox, | 156 | static int omap2_mbox_is_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) |
163 | omap_mbox_type_t irq) | ||
164 | { | 157 | { |
165 | struct omap_mbox2_priv *p = mbox->priv; | 158 | struct omap_mbox2_priv *p = mbox->priv; |
166 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 159 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |