From patchwork Fri Sep 20 01:21:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Grundler X-Patchwork-Id: 2914511 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4D66EBFF05 for ; Fri, 20 Sep 2013 01:22:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 808AB201CD for ; Fri, 20 Sep 2013 01:22:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58DB7202C1 for ; Fri, 20 Sep 2013 01:22:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753478Ab3ITBWL (ORCPT ); Thu, 19 Sep 2013 21:22:11 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:56328 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753307Ab3ITBWH (ORCPT ); Thu, 19 Sep 2013 21:22:07 -0400 Received: by mail-pd0-f175.google.com with SMTP id q10so9053224pdj.6 for ; Thu, 19 Sep 2013 18:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=KcZUYD69Sdatd9fee2W4E3v0SHWwqxBjuytYlLn45Z0=; b=h63M9cD72MSGwIJ+TvfOJ2ld8aboXDXPBwo+P6+oUXFVpo4ISiyenvuzvH+Rf03g0E ixmbTrJP6NsB2SWvGFytIER30txJi0diraRaA2F/UP9QuM042MR4/bG77+uICq0oOXSX GV3YsekzR3tNvo3CVFqZYqgnM81JL671Tmfxo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KcZUYD69Sdatd9fee2W4E3v0SHWwqxBjuytYlLn45Z0=; b=XbNy6wVUgxczoIkcSNKCrNQGBswAeQrRTyrj8FElAMn3hqQ6lj6aLsMhplM8KhmZs7 Y7VXbcpj/kmi45KSroESZw8seWT6fQY7y/ijjtwQSMiPrCbcWUCZ8SIXaiZK9kuzTbAC ZXr1A1qKB+jRsNyso2TWB2LEaMfwkRlycxoPYUAzjd1iMbRFngat3apHHGjOsGSeH3j1 EjdkcyKLzIVgltF//A6lqDBt8QEYJIZpMFDSDlMyfBqpg+7rv4a0Cg16LUG/exxm87aY WZbbdhoTX28thma/Ttbdw3il5EsWz+hn83i16z/MQveuP9RAV25QPQKUtWqHgycWD2An wpwA== X-Gm-Message-State: ALoCoQl2tx7yfq8RVK529jSv8znttCciB8LrqiCUugdwzLtmdhvg33wO/X6hKdoydSYytXBRCn/Z X-Received: by 10.68.179.98 with SMTP id df2mr5009812pbc.38.1379640127350; Thu, 19 Sep 2013 18:22:07 -0700 (PDT) Received: from firesword.mtv.corp.google.com (firesword.mtv.corp.google.com [172.22.73.90]) by mx.google.com with ESMTPSA id fi4sm6256004pbc.28.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 18:22:06 -0700 (PDT) From: Grant Grundler To: Chris Ball , Seungwon Jeon Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Grant Grundler Subject: [PATCH] mmc: core: remove dead function mmc_try_claim_host Date: Thu, 19 Sep 2013 18:21:36 -0700 Message-Id: <1379640096-32383-1-git-send-email-grundler@chromium.org> X-Mailer: git-send-email 1.8.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 cscsope says there are no callers for mmc_try_claim_host in the kernel. No reason to keep it. Signed-off-by: Grant Grundler Acked-by: Ulf Hansson --- drivers/mmc/core/core.c | 25 ------------------------- include/linux/mmc/core.h | 1 - 2 files changed, 26 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index bf18b6b..006ead2 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -918,31 +918,6 @@ int __mmc_claim_host(struct mmc_host *host, atomic_t *abort) EXPORT_SYMBOL(__mmc_claim_host); /** - * mmc_try_claim_host - try exclusively to claim a host - * @host: mmc host to claim - * - * Returns %1 if the host is claimed, %0 otherwise. - */ -int mmc_try_claim_host(struct mmc_host *host) -{ - int claimed_host = 0; - unsigned long flags; - - spin_lock_irqsave(&host->lock, flags); - if (!host->claimed || host->claimer == current) { - host->claimed = 1; - host->claimer = current; - host->claim_cnt += 1; - claimed_host = 1; - } - spin_unlock_irqrestore(&host->lock, flags); - if (host->ops->enable && claimed_host && host->claim_cnt == 1) - host->ops->enable(host); - return claimed_host; -} -EXPORT_SYMBOL(mmc_try_claim_host); - -/** * mmc_release_host - release a host * @host: mmc host to release * diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index da51bec..a00fc49 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -188,7 +188,6 @@ extern unsigned int mmc_align_data_size(struct mmc_card *, unsigned int); extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); extern void mmc_release_host(struct mmc_host *host); -extern int mmc_try_claim_host(struct mmc_host *host); extern void mmc_get_card(struct mmc_card *card); extern void mmc_put_card(struct mmc_card *card);