From patchwork Fri May 27 14:54:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 824322 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4REsA5R023096 for ; Fri, 27 May 2011 14:54:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112Ab1E0OyJ (ORCPT ); Fri, 27 May 2011 10:54:09 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:55635 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370Ab1E0OyI (ORCPT ); Fri, 27 May 2011 10:54:08 -0400 Received: from axis700.grange (dslb-094-221-103-246.pools.arcor-ip.net [94.221.103.246]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0LrqDW-1Pe1B21LNG-012vst; Fri, 27 May 2011 16:54:06 +0200 Received: by axis700.grange (Postfix, from userid 1000) id C9E03189B6E; Fri, 27 May 2011 16:54:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id C7135189B6B; Fri, 27 May 2011 16:54:05 +0200 (CEST) Date: Fri, 27 May 2011 16:54:05 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: linux-sh@vger.kernel.org, Ian Molton , Magnus Damm , Simon Horman Subject: [PATCH] mmc: sdhi: fix module unloading Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:auh3mCPmLwh5WBUkpnhB6grR8X7hqCmRnA1e1F+mLhX AVBMsa8SOTkJ+jTKxLFb+NFQ6Mb8DeJKRbSKz9rlPpfpUL6VMR n02+dyf7qeAVy/04udRdi81YKGpigDpMpENMHdteYs3s7jAqpy TbvPLkfdH5O0rum0F7TFP7wJI3Ka++G1MlqHjl7jWOFaSsroxf yxlaKKpXypIK4o1rb59tamXqGbn6uOWXOzR+PBV5C4= 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.6 (demeter2.kernel.org [140.211.167.43]); Fri, 27 May 2011 14:54:10 +0000 (UTC) MMC host drivers must be able to process interrupts during mmc_remove_host(). Signed-off-by: Guennadi Liakhovetski --- drivers/mmc/host/sh_mobile_sdhi.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index c1c1386..ce500f0 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -165,13 +165,14 @@ static int sh_mobile_sdhi_remove(struct platform_device *pdev) p->pdata = NULL; + tmio_mmc_host_remove(host); + for (i = 0; i < 3; i++) { irq = platform_get_irq(pdev, i); if (irq >= 0) free_irq(irq, host); } - tmio_mmc_host_remove(host); clk_disable(priv->clk); clk_put(priv->clk); kfree(priv);