From patchwork Mon Feb 3 11:15:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 3568891 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 AAF1AC02DC for ; Mon, 3 Feb 2014 11:15:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5E3820131 for ; Mon, 3 Feb 2014 11:15:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1AAEE201FE for ; Mon, 3 Feb 2014 11:15:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750936AbaBCLPp (ORCPT ); Mon, 3 Feb 2014 06:15:45 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:14008 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752755AbaBCLPk (ORCPT ); Mon, 3 Feb 2014 06:15:40 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0F00KY43A3LS00@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 03 Feb 2014 20:15:39 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id B4.4B.09028.A5A7FE25; Mon, 03 Feb 2014 20:15:38 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-d5-52ef7a5a1105 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 18.4A.29263.A5A7FE25; Mon, 03 Feb 2014 20:15:38 +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 <0N0F0010E3A1ON50@mmp2.samsung.com>; Mon, 03 Feb 2014 20:15:38 +0900 (KST) Message-id: <52EF7A5A.3030801@samsung.com> Date: Mon, 03 Feb 2014 20:15:38 +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 v3 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+NgFmpjkeLIzCtJLcpLzFFi42JZI2JSohtV9T7I4P1NZYsJl7czWhz5389o 8eH+RWYHZo8brxYyefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfG7mnHmQtWclQcnXqLuYHx LVsXIyeHhICJxLdJF6BsMYkL99YD2VwcQgJLGSW+fu5h7mLkACs6uhEqPp1RYtrUn0wgDUIC rxklXtyyALF5BbQkbt9ZzQJiswioSjw/844dxGYT0JHY/u04WL2oQJjE1BNXWSDqBSV+TL7H AjJfRMBaovm3LEiYWcBdYsrHW2CtwgKuEtf617NAxHUk9rdOY4Ow5SU2r3nLDHKPhEA3u8TU nWeYIfYKSHybfIgF4mZZiU0HmCH+kpQ4uOIGywRGkVlINs9CMnYWkrELGJlXMYqmFiQXFCel FxnpFSfmFpfmpesl5+duYgTGwel/z/p2MN48YH2IMRlo5URmKdHkfGAc5ZXEGxqbGVmYmpga G5lbmpEmrCTOu+hhUpCQQHpiSWp2ampBalF8UWlOavEhRiYOTqkGRqF8XZbuRFnBaLUIN5F/ 6v86u1oZjhVsb+XgYdOZxitYZzmXf19g874zk2wNp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mc-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 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 a349cbf..2f40593 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); }