From patchwork Thu Feb 18 07:08:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guzman Lugo, Fernando" X-Patchwork-Id: 80211 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1I76JhW023179 for ; Thu, 18 Feb 2010 07:08:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751594Ab0BRHIN (ORCPT ); Thu, 18 Feb 2010 02:08:13 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:55613 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882Ab0BRHIM convert rfc822-to-8bit (ORCPT ); Thu, 18 Feb 2010 02:08:12 -0500 Received: from dlep35.itg.ti.com ([157.170.170.118]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o1I7831Z017120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Feb 2010 01:08:03 -0600 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id o1I783wc017912; Thu, 18 Feb 2010 01:08:03 -0600 (CST) Received: from dlee74.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o1I783Ij006546; Thu, 18 Feb 2010 01:08:03 -0600 (CST) Received: from dlee06.ent.ti.com ([157.170.170.11]) by dlee74.ent.ti.com ([157.170.170.8]) with mapi; Thu, 18 Feb 2010 01:08:02 -0600 From: "Guzman Lugo, Fernando" To: "linux-omap@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , Hiroshi DOYU Date: Thu, 18 Feb 2010 01:08:02 -0600 Subject: [PATCH v2 2/5] Mailbox: flush pending deferred works before freeing blk Thread-Topic: [PATCH v2 2/5] Mailbox: flush pending deferred works before freeing blk Thread-Index: AcqwaRv823AEGXo3Qd2x/CGD/R6dIw== Message-ID: <496565EC904933469F292DDA3F1663E602CA2B9B2B@dlee06.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 18 Feb 2010 07:08:14 +0000 (UTC) diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c index e6cc4b0..3e2f961 100644 --- a/arch/arm/plat-omap/mailbox.c +++ b/arch/arm/plat-omap/mailbox.c @@ -297,6 +297,8 @@ static int omap_mbox_startup(struct omap_mbox *mbox) static void omap_mbox_fini(struct omap_mbox *mbox) { free_irq(mbox->irq, mbox); + tasklet_kill(&mbox->txq->tasklet); + flush_work(&mbox->rxq->work); mbox_queue_free(mbox->txq); mbox_queue_free(mbox->rxq);