From patchwork Mon Mar 3 02:36:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 3750721 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 0BECFBF40C for ; Mon, 3 Mar 2014 02:36:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35CC720395 for ; Mon, 3 Mar 2014 02:36:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 482CE2038C for ; Mon, 3 Mar 2014 02:36:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752009AbaCCCgW (ORCPT ); Sun, 2 Mar 2014 21:36:22 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:21957 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883AbaCCCgV (ORCPT ); Sun, 2 Mar 2014 21:36:21 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1U007TG9WKO010@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 03 Mar 2014 11:36:20 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 91.6D.14803.4AAE3135; Mon, 03 Mar 2014 11:36:20 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-62-5313eaa4ebbb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CF.3A.29263.4AAE3135; Mon, 03 Mar 2014 11:36:20 +0900 (KST) Received: from [10.252.81.186] by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1U00AFO9WKQ211@mmp2.samsung.com>; Mon, 03 Mar 2014 11:36:20 +0900 (KST) Message-id: <5313EABD.3010804@samsung.com> Date: Mon, 03 Mar 2014 11:36:45 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-version: 1.0 To: "linux-mmc@vger.kernel.org" Cc: Chris Ball , Ulf Hansson , Seungwon Jeon Subject: [PATCH v4 5/7] mmc: dw_mmc: remove the unnecessary function. Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRmVeSWpSXmKPExsWyRsSkRHfJK+Fggy2XxCwmXN7OaHHkfz+j xYf7F5ktjq8Nd2DxuHNtD5vHjVcLmTz6tqxi9Pi8SS6AJYrLJiU1J7MstUjfLoEro6l9HlvB QY6KnpNXmBsY/7F1MXJySAiYSLy6dpAJwhaTuHBvPVCci0NIYCmjxK3dx5hgilr2XmSGSExn lLi/+ySU85pR4smOn4wgVbwCWhK3es6ygNgsAqoSf4//ArPZBHQktn87DjZJVCBMYuqJqywQ 9YISPybfA7I5OEQErCWaf8uChJkF8iW+750Jdp2wgKtE3/b7LBBxHYn9rdPYIGx5ic1r3oLd ICEwmV3ic/dHRoi9AhLfJh8CmykhICux6QAzxAOSEgdX3GCZwCgyC8nmWUjGzkIydgEj8ypG 0dSC5ILipPQiU73ixNzi0rx0veT83E2MwOg4/e/ZxB2M9w9YH2JMBlo5kVlKNDkfGF15JfGG xmZGFqYmpsZG5pZmpAkrifOmP0oKEhJITyxJzU5NLUgtii8qzUktPsTIxMEp1cDIbbfeabYh Q4wg21OpEzO6pumk/vuybdLe2+er7VdeK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: Reflected 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Remove unnecessary function. This function didn't re-use anywhere. Signed-off-by: Jaehoon Chung Acked-by: Ulf Hansson --- Changelog V4: - None Changelog V3: - None Changelog V2: - None drivers/mmc/host/dw_mmc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index ac16308..1418d33 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -235,12 +235,6 @@ err: } #endif /* defined(CONFIG_DEBUG_FS) */ -static void dw_mci_set_timeout(struct dw_mci *host) -{ - /* timeout (maximum) */ - mci_writel(host, TMOUT, 0xffffffff); -} - static u32 dw_mci_prepare_command(struct mmc_host *mmc, struct mmc_command *cmd) { struct mmc_data *data; @@ -861,7 +855,7 @@ static void __dw_mci_start_request(struct dw_mci *host, data = cmd->data; if (data) { - dw_mci_set_timeout(host); + mci_writel(host, TMOUT, 0xFFFFFFFF); mci_writel(host, BYTCNT, data->blksz*data->blocks); mci_writel(host, BLKSIZ, data->blksz); }