diff options
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/mailbox.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c index 08a2df766289..252a58698ef7 100644 --- a/arch/arm/plat-omap/mailbox.c +++ b/arch/arm/plat-omap/mailbox.c | |||
@@ -298,11 +298,10 @@ static int omap_mbox_startup(struct omap_mbox *mbox) | |||
298 | 298 | ||
299 | static void omap_mbox_fini(struct omap_mbox *mbox) | 299 | static void omap_mbox_fini(struct omap_mbox *mbox) |
300 | { | 300 | { |
301 | free_irq(mbox->irq, mbox); | ||
301 | mbox_queue_free(mbox->txq); | 302 | mbox_queue_free(mbox->txq); |
302 | mbox_queue_free(mbox->rxq); | 303 | mbox_queue_free(mbox->rxq); |
303 | 304 | ||
304 | free_irq(mbox->irq, mbox); | ||
305 | |||
306 | if (unlikely(mbox->ops->shutdown)) { | 305 | if (unlikely(mbox->ops->shutdown)) { |
307 | write_lock(&mboxes_lock); | 306 | write_lock(&mboxes_lock); |
308 | if (mbox_configured > 0) | 307 | if (mbox_configured > 0) |