From patchwork Tue Mar 3 12:28:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Fenkart X-Patchwork-Id: 5922031 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7FC969F36A for ; Tue, 3 Mar 2015 12:29:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3762202B8 for ; Tue, 3 Mar 2015 12:29:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8EEE201CE for ; Tue, 3 Mar 2015 12:29:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756146AbbCCM3R (ORCPT ); Tue, 3 Mar 2015 07:29:17 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:44272 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755159AbbCCM3R (ORCPT ); Tue, 3 Mar 2015 07:29:17 -0500 Received: by wiwl15 with SMTP id l15so22289398wiw.3; Tue, 03 Mar 2015 04:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aolbkLci2FBcijY7orXFSMVa/9qYMqoc4Qo7pgNOMYs=; b=Vk1sZ3V2LwjLjO0muRfgT5tWQSj/E1g7dYjLxHoMtmRrXikseyZp6VbGZQkGT+B4AA LNnLVRdxlnQD/6hQOcclxcIF8otwgtB1tGGPIbl5+3xJonXXF9/kRiADLQjO2Gba1+eh sZF8kXxaWDmSZ9Up74sIN0Nwj/xb5TD0Vy9EVMd46DCvZ7UYqKMiIwkMgS+lWDkaQGA+ iFTB5sD/8YRagg77u6JH8WcHie+evRMQTxe022KACn5l2x0bwRwzFV3NJghznSpm6kIF ZnnYl0rqqg0yoConJGUnh1xZFG1IQ6YIH7tdwGsnFpcXPUg+5qiixBCbFW9R/88t6bhc ro4Q== X-Received: by 10.194.60.173 with SMTP id i13mr67865932wjr.124.1425385755565; Tue, 03 Mar 2015 04:29:15 -0800 (PST) Received: from localhost (ip-94-112-1-170.net.upcbroadband.cz. [94.112.1.170]) by mx.google.com with ESMTPSA id dz6sm20401359wib.0.2015.03.03.04.29.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 04:29:14 -0800 (PST) From: Andreas Fenkart To: linux-mmc@vger.kernel.org Cc: linux-omap@vger.kernel.org, NeilBrown , Tony Lindgren , Ulf Hansson , Andreas Fenkart Subject: [PATCH 6/6] mmc: omap_hsmmc: use generic slot-gpio isr to manage card detect pin Date: Tue, 3 Mar 2015 13:28:18 +0100 Message-Id: <1425385698-6588-7-git-send-email-afenkart@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1425385698-6588-1-git-send-email-afenkart@gmail.com> References: <1425385698-6588-1-git-send-email-afenkart@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andreas Fenkart --- drivers/mmc/host/omap_hsmmc.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4f6fbe5..0c3368e 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -418,7 +418,6 @@ static inline int omap_hsmmc_have_reg(void) #endif -static irqreturn_t omap_hsmmc_detect(int irq, void *dev_id); static irqreturn_t omap_hsmmc_cover_irq(int irq, void *dev_id); static int omap_hsmmc_gpio_init(struct mmc_host *mmc, @@ -440,7 +439,6 @@ static int omap_hsmmc_gpio_init(struct mmc_host *mmc, return ret; host->card_detect = omap_hsmmc_card_detect; - mmc_gpio_set_cd_isr(mmc, omap_hsmmc_detect); } if (gpio_is_valid(pdata->gpio_wp)) { @@ -1247,17 +1245,6 @@ static irqreturn_t omap_hsmmc_cover_irq(int irq, void *dev_id) return IRQ_HANDLED; } -/* - * irq handler to notify the core about card insertion/removal - */ -static irqreturn_t omap_hsmmc_detect(int irq, void *dev_id) -{ - struct omap_hsmmc_host *host = dev_id; - - mmc_detect_change(host->mmc, (HZ * 200) / 1000); - return IRQ_HANDLED; -} - static void omap_hsmmc_dma_callback(void *param) { struct omap_hsmmc_host *host = param;