From patchwork Tue Jan 21 10:16:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 3516191 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5F6779F2E9 for ; Tue, 21 Jan 2014 10:16:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D0092015A for ; Tue, 21 Jan 2014 10:16:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 281ED2010E for ; Tue, 21 Jan 2014 10:16:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754031AbaAUKQh (ORCPT ); Tue, 21 Jan 2014 05:16:37 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:65505 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754179AbaAUKQf (ORCPT ); Tue, 21 Jan 2014 05:16:35 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZQ00K9QXVMDE20@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Tue, 21 Jan 2014 19:16:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F1.02.10364.2094ED25; Tue, 21 Jan 2014 19:16:34 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-e5-52de49029926 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CE.7D.28157.2094ED25; Tue, 21 Jan 2014 19:16:34 +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 <0MZQ00JYNXVMKD10@mmp2.samsung.com>; Tue, 21 Jan 2014 19:16:34 +0900 (KST) Message-id: <52DE491B.2070101@samsung.com> Date: Tue, 21 Jan 2014 19:16:59 +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 , Seungwon Jeon Subject: [PATCH 6/7] mmc: dw_mmc: remove the unnecessary function. Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42JZI2JSrMvkeS/IYM82HYsJl7czWhz5389o 8eH+RWYHZo8brxYyefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfGjp7LbAXf2StOb29lbGA8 zdbFyMkhIWAisfzTbShbTOLCvfVANheHkMBSRonX61pZYIr+3pnKBGILCUxnlPgyiQui6DWj xJb1j5lBErwCWhJ3f1wFa2ARUJXoXXMebCqbgI7E9m/HwZpFBcIkpp6AqOEVEJT4MfkekM3B ISJgLdH8WxYkzCzgLjHl4y12EFtYwEli3tXPLBBxHYn9rdPYIGx5ic1r3jKD3CAh0M4usXbe FHaIvQIS3yYfApspISArsekAM8T9khIHV9xgmcAoMgvJ5llIxs5CMnYBI/MqRtHUguSC4qT0 IhO94sTc4tK8dL3k/NxNjMBIOP3v2YQdjPcOWB9iTAZaOZFZSjQ5HxhJeSXxhsZmRhamJqbG RuaWZqQJK4nzqj1KChISSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAmL5LP1bip7jDtPaJ31J2 HvWN4P2huen5vhgtNdt5e9csm+LoeSo3/INb/+zZ7PJtdwMvWvOtDH1h2L90stGqlr47r2TC eAwnZP0XydFmi/gnxqg062Pwri3XpI+b7d7H4cj5zeTZk/OfH1U3tVs+CTR7fF14eTbbgV5D Yb/gM1mlgtcvhOStUmIpzkg01GIuKk4EAH97GtGaAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCIsWRmVeSWpSXmKPExsVy+t9jQV0mz3tBBk9/qFpMuLyd0eLI/35G iw/3LzI7MHvceLWQyaNvyypGj8+b5AKYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOANikplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0Jgusx MkADCWsYM3b0XGYr+M5ecXp7K2MD42m2LkZODgkBE4m/d6YyQdhiEhfurQeLCwlMZ5T4Momr i5ELyH7NKLFl/WNmkASvgJbE3R9XWUBsFgFVid4158Ea2AR0JLZ/Ow42SFQgTGLqCYgaXgFB iR+T7wHZHBwiAtYSzb9lQcLMAu4SUz7eYgexhQWcJOZd/cwCEdeR2N86jQ3ClpfYvOYt8wRG vllIJs1CUjYLSdkCRuZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGMFx9kx6B+OqBotDjAIc jEo8vBUb7wYJsSaWFVfmHmKU4GBWEuE95ngvSIg3JbGyKrUoP76oNCe1+BBjMtCjE5mlRJPz gSkgryTe0NjEzMjSyNzQwsjYnDRhJXHeg63WgUIC6YklqdmpqQWpRTBbmDg4pRoYI36EdK2a L+04cfL245d1X3McYVZx4uG92Cewfs6f8NNiufkR73OS/j65YB1RWLLNaIfyr7xKI/U1hzI/ c22UsOesymvUM/KRO5L44PPyKr73241/TT2x1LnpfMLEQsveMLeIxS48nAlMvDzVZ3eW9fxo XMD433rbqZvHclwy1HMrX5zkfZ6lxFKckWioxVxUnAgATFfup/cCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: 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=-7.5 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 --- 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); }