From patchwork Mon Dec 20 15:53:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Hannemann X-Patchwork-Id: 421481 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBKG5I5j013818 for ; Mon, 20 Dec 2010 16:05:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758134Ab0LTQFK (ORCPT ); Mon, 20 Dec 2010 11:05:10 -0500 Received: from slowhand.arndnet.de ([88.198.19.76]:34198 "EHLO mail.unitix.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758127Ab0LTQFJ (ORCPT ); Mon, 20 Dec 2010 11:05:09 -0500 Received: from kallisto.arndnet.de (80-230.eduroam.RWTH-Aachen.DE [134.61.80.230]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.unitix.de (Postfix) with ESMTP id 5C0E113EA5; Mon, 20 Dec 2010 17:05:08 +0100 (CET) From: Arnd Hannemann To: Magnus Damm Cc: linux-mmc@vger.kernel.org, linux-sh@vger.kernel.org, g.liakhovetski@gmx.de, Ian Molton , Samuel Ortiz , Arnd Hannemann Subject: [PATCH 3/6 v2] mmc: tmio: disable IRQs early in remove Date: Mon, 20 Dec 2010 15:53:48 +0000 Message-Id: <1292860431-16195-4-git-send-email-arnd@arndnet.de> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: References: Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 20 Dec 2010 16:05:26 +0000 (UTC) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 18771b4..37721aa 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -1249,9 +1249,9 @@ static int __devexit tmio_mmc_remove(struct platform_device *dev) if (mmc) { struct tmio_mmc_host *host = mmc_priv(mmc); - mmc_remove_host(mmc); tmio_mmc_release_dma(host); free_irq(host->irq, host); + mmc_remove_host(mmc); if (cell->disable) cell->disable(dev); iounmap(host->ctl);