From patchwork Tue Oct 21 17:19:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 39208 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CED6D24039 for ; Tue, 21 Oct 2014 17:19:44 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf1106958lbg.9 for ; Tue, 21 Oct 2014 10:19:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=db3gNrHCkJTS7Qa3fNG1YcrWgv9uGgj1Gte/HtMjWY0=; b=CSA+FWT+hRl9q4yn23FWMkw2wj52LH9XfNjbUgcSJuPyfW0f2u9RpXbzXB3TTm68rH lzIAI/98cRmasROroLWCn7ofwsE5WrKhcCTYtUwVZsp+MSZG6JpOcQpBatMvztQlZqjo opiBvpqAH+3QzRkEJfmvwDhcGHr80o1tnFqFcqjL60mqfjaxE1O/kPchvLHhSuOmo8cQ M0nYCdz/zL3Znj/9ObPtf3ncSSngexkkg8qCBJF2ZPSUn2Q7Mime+V+MNGEgVRg5EfWl kvKIVSC2meIGe9UB1jn59lLKmFiFPi44joZwYrrha24NOkHkXkzf4ly9aQHTCPvSyjGm WHRA== X-Gm-Message-State: ALoCoQlu73LEvefrmpzijiec2jlnpKfnZahkf1UzgMtGpn9pydufnkuUyrQHGc322R0yesW4Lq+F X-Received: by 10.112.168.40 with SMTP id zt8mr296713lbb.0.1413911983658; Tue, 21 Oct 2014 10:19:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.82 with SMTP id v18ls82009laz.46.gmail; Tue, 21 Oct 2014 10:19:43 -0700 (PDT) X-Received: by 10.152.115.131 with SMTP id jo3mr36198797lab.20.1413911983393; Tue, 21 Oct 2014 10:19:43 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id wt3si19983400lbb.44.2014.10.21.10.19.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so1432625lbi.30 for ; Tue, 21 Oct 2014 10:19:43 -0700 (PDT) X-Received: by 10.112.77.74 with SMTP id q10mr27727696lbw.66.1413911983258; Tue, 21 Oct 2014 10:19:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.84.229 with SMTP id c5csp545284lbz; Tue, 21 Oct 2014 10:19:42 -0700 (PDT) X-Received: by 10.152.116.68 with SMTP id ju4mr36196053lab.13.1413911982886; Tue, 21 Oct 2014 10:19:42 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id o5si20016908laj.1.2014.10.21.10.19.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:42 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id gm9so1503184lab.13 for ; Tue, 21 Oct 2014 10:19:42 -0700 (PDT) X-Received: by 10.152.87.171 with SMTP id az11mr4745878lab.97.1413911982787; Tue, 21 Oct 2014 10:19:42 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id uh7sm4791085lac.1.2014.10.21.10.19.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Oct 2014 10:19:41 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Subject: [PATCH 13/15] mmc: core: Remove the redundant mmc_send_ext_csd() API Date: Tue, 21 Oct 2014 19:19:11 +0200 Message-Id: <1413911953-19012-14-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413911953-19012-1-git-send-email-ulf.hansson@linaro.org> References: <1413911953-19012-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Previous patches has replaced the calls to mmc_send_ext_csd() into mmc_get_ext_csd(), thus mmc_send_ext_csd() has become redundant. Let's remove it. Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc_ops.c | 10 ++-------- include/linux/mmc/core.h | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 72e1f9b..9a6181b 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -378,13 +378,6 @@ err: return ret; } -int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd) -{ - return mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD, - ext_csd, 512); -} -EXPORT_SYMBOL_GPL(mmc_send_ext_csd); - int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) { int err; @@ -404,7 +397,8 @@ int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) if (!ext_csd) return -ENOMEM; - err = mmc_send_ext_csd(card, ext_csd); + err = mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD, ext_csd, + 512); if (err) kfree(ext_csd); else diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 0a77d35..b11e43c 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -154,7 +154,6 @@ extern void mmc_start_bkops(struct mmc_card *card, bool from_exception); extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool, bool, bool); extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int); -extern int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd); extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd); #define MMC_ERASE_ARG 0x00000000