From patchwork Tue Jan 28 08:24:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 3545651 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 99D929F381 for ; Tue, 28 Jan 2014 08:24:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7DDA92015A for ; Tue, 28 Jan 2014 08:24:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8577E20154 for ; Tue, 28 Jan 2014 08:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754643AbaA1IY3 (ORCPT ); Tue, 28 Jan 2014 03:24:29 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:48734 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754054AbaA1IY2 (ORCPT ); Tue, 28 Jan 2014 03:24:28 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N03003HMRCRV840@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Tue, 28 Jan 2014 17:24:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 5C.F7.10092.A3967E25; Tue, 28 Jan 2014 17:24:26 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-df-52e7693af2e2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 93.9C.29263.A3967E25; Tue, 28 Jan 2014 17:24:26 +0900 (KST) Received: from [10.252.81.186] by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0300LUDRCQ4QD0@mmp1.samsung.com>; Tue, 28 Jan 2014 17:24:26 +0900 (KST) Message-id: <52E76959.8040003@samsung.com> Date: Tue, 28 Jan 2014 17:24:57 +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 v2 6/8] mmc: dw_mmc: remove the unnecessary function. Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42JZI2JSpGuV+TzIYPpxa4sJl7czWhz5389o 8eH+RWYHZo8brxYyefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfGt6sPGQsmclRsWTSbsYHx DlsXIyeHhICJxO5V11ggbDGJC/fWA8W5OIQEljJKLD+/Ca7oz9VWdojEIkaJOT+/gCWEBF4z SjT1V4DYvAJaEj8XvwKbxCKgKtHcsYsdxGYT0JHY/u04E4gtKhAmMfXEVRaIekGJH5PvAdkc HCIC1hLNv2VBwswC7hJTPt4CaxUWcJVY/amfCSKuI7G/dRobhC0vsXnNW2aQeyQEmtkluu5/ YIbYKyDxbfIhsJkSArISmw4wQ9wvKXFwxQ2WCYwis5BsnoVk7CwkYxcwMq9iFE0tSC4oTkov MtYrTswtLs1L10vOz93ECIyE0/+e9e9gvHvA+hBjMtDKicxSosn5wEjKK4k3NDYzsjA1MTU2 Mrc0I01YSZz3/sOkICGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2Ms5t3Kr/R/tF7dt3cpXEn 0uZPauco1J1isdemnDX9Z++h9RPSV15qW3BE81jA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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, 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 --- 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 2cdfccb..947859f 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); }