From patchwork Wed Jul 22 12:53:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 6844401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A6ED49F1D4 for ; Wed, 22 Jul 2015 14:07:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB4B92058E for ; Wed, 22 Jul 2015 14:07:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B972220649 for ; Wed, 22 Jul 2015 14:07:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHueT-0000Nh-Lv; Wed, 22 Jul 2015 14:05:41 +0000 Received: from mail-bl2on0102.outbound.protection.outlook.com ([65.55.169.102] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHucw-00068o-8M for linux-arm-kernel@lists.infradead.org; Wed, 22 Jul 2015 14:04:09 +0000 Received: from BN3PR0301CA0051.namprd03.prod.outlook.com (10.160.152.147) by CY1PR03MB1424.namprd03.prod.outlook.com (10.163.17.146) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 22 Jul 2015 14:03:50 +0000 Received: from BN1AFFO11FD013.protection.gbl (2a01:111:f400:7c10::105) by BN3PR0301CA0051.outlook.office365.com (2a01:111:e400:401e::19) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Wed, 22 Jul 2015 14:03:50 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; gmail.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD013.mail.protection.outlook.com (10.58.52.73) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Wed, 22 Jul 2015 14:03:49 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t6ME2iY8019637; Wed, 22 Jul 2015 07:03:43 -0700 From: Dong Aisheng To: Subject: [PATCH V2 10/11] mmc: sdhci-esdhc-imx: clear f_max in boarddata Date: Wed, 22 Jul 2015 20:53:09 +0800 Message-ID: <1437569590-5228-11-git-send-email-aisheng.dong@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437569590-5228-1-git-send-email-aisheng.dong@freescale.com> References: <1437569590-5228-1-git-send-email-aisheng.dong@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD013; 1:KvBXvAZ27/PM6J40JfWoN82+fSkmbQenXGQa7tV8sH0jFqGnYXds+XJNfvwAYIUtWmA0ZpEL05cQTyjZK9kRu88bdGSKKOjPZO4P8b2CPnyl25TaDFFTnN6qWaZmLrIoF5zp2xIa9OWisOTOTiP2NBgWKewo7/ACWjCSwckOnUAix8juYWPeKTCN0G8QDnUm2aoK7tI4QaR+auEf1iVXk5xRaMuG0I/8nKsR3yFRyBxozXYdU8rr1yN2zm20t9OeGmLXH26x/OwJmt/FHfdwyEaa2V+kwzVNlDVCzD09R5y4aV9uJKB2mPWiPmRiUbhCJ3Z89+tjLkM5+TCNip5p41W+CP+PrdOBjje4T/uIFKsfBjOIRCvzMVM6ggePzWULJGUGu7Z31QFvrAq9IV8yb7TyogVoA+pYq0Y6YgasJUAYxSN7fbvg9Lo0He6S2CiH X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(5003940100001)(50226001)(85426001)(5001960100002)(110136002)(92566002)(19580395003)(77096005)(87936001)(19580405001)(62966003)(77156002)(2950100001)(47776003)(6806004)(229853001)(50466002)(46102003)(104016003)(86362001)(230783001)(575784001)(2351001)(48376002)(189998001)(106466001)(36756003)(33646002)(76176999)(105606002)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1424; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 2:IIF4Iwye5dJimamLo8onq17tVkOMbXVqAAWrbBnjg86BDlffF5UGCbpN3U7nl98N; 3:T9I3qA68k6h56dnSQ+CTJ3Dd14Iyd5ZK3CyWVkKIq/DuFpMi3TZUJneYe+gxWWRm7dk+EP69SVOKYg4PF+8VK4XGHegQOfprbrbrcY+0Dg4ecM18rnu6Oj5y51G4Qa3YjfWCKsK+ZPKPof/5xMI+8gb38IIS5U3RnkAhSw9PmEOW4ZUengBFWn0WlpxSNXpK6Aw0K3Sj7OaFOYur4TLkMYpDXW+9SC/sNbGJbdRrCmg=; 25:8Xn4ijC1vIluEYgYgdUYadvaYzSIxcbpSd2rO1rIoSXOeI4+fEagPQd/H7fhKHY0en6X3oHU8LaqCdaIPSQCd1fgwIUXq2fd3PR3b1VKUeJcoOs4PYDU4VePiyVfIrirp2gGUUBH3dnWCQxSQAtKuw72aINxK0VcmCQJXICEnJ4qaN4zl/0qpZj8Y4oEcLArYdYC7wWe8HV2awEir0gk03OeA4BbmjCq4HLu9EEKs0YZk+KFIS3dIOxzEVu6ZUNtIfsFrGrhyO8K4WAtx+SByQ==; 20:ViICBxHotEMzE6rImC3uAjIQxr3aJi5gU+POm8rk6SrEPd2vOPE3ECV5mjQf5aRx2kNGAoaBxjK5UptZNggbpTKvP3BDy7hYHsfx7jltGlL79pR1PAnicZLooBYR+I4CDAgm5wTmUt6ItTgSzalLMxTm/JEF482KK76jw57QHOL9V5mMtZSXVnirLuRdDCBAY3pFgyX9Z+JJ4nQ6G+C76FAnoIvx/WFvDxPyTCLrbqV8OMEEJ5/+9ichVgkUwQn63QrOkdJ/p3WCQroS4gIS9xueZJv8xEktSRMLlI3eVcUSrxV15pXANRi+c8XEBEmOvPezQlaEut7kj1Ec05T8jf/vGR5Vw4Ta96Ac8aW/+lc= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1424; CY1PR03MB1424: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR03MB1424; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1424; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 4:5lLI2WKQuElIieg635XJz+KV9jQlJqbY0pgizSK4WOpuUKVMR7AEfRHEmkuUp+pVOsn5XzTpgIv/bmQsfF8EBROC+AhiU3aHVRW5p7HYVLwEPj+t+ugGQlpCQbbtFSoSaVbOaL4v/zi7vivixDPoYPPUjtRKyyLjgBGhe8861OZeXHr5RAqbq//FUVv1NnSX6U4WFxBaugiZoCwuVJXPfIS8u4OkMIlTAiGINDXLvwWcFyZlX2i/R5KcYcrtceU3ATuWdCATY7094mdmEMlagGjlAlp3hEkGajPDXI4h9WQ= X-Forefront-PRVS: 0645BEB7AA X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1424; 23:yM7xnz7ebj7XskChUgA+dP2ZoDBpKoM3zqQYoryfpFXWyJ6od3ZfjUV3PK1SdHWKvPdNLzn/+OC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N6Q==; 24:hwFuLXrmkxJop0Ztua95MOjGm7cVEy/CuqSlO++QprywHtcF8Ol/NhuLQjT18Xwft0QLfsXcTVVz8j1mhylJYiLsUl3TcMAogE76QCh8JEw=; 20:qSLTqolJ7QI6CmQv+UUv68cK1byK2nRI4XwJdJd1j7spWphTxZl+t6jLgv9ab87zLiQgAXT6oEcIwBx9yWM5UQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2015 14:03:49.9451 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1424 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150722_070406_493655_E3B6F2C9 X-CRM114-Status: GOOD ( 12.52 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@freescale.com, marex@denx.de, ulf.hansson@linaro.org, hs@denx.de, p.zabel@pengutronix.de, tharvey@gateworks.com, shawn.guo@linaro.org, s.hauer@pengutronix.de, ipaton0@gmail.com, chris@printf.net, rabeeh@solid-run.com, troy.kisky@boundarydevices.com, smoch@web.de, gwenhael.goavec-merou@armadeus.com, rmk+kernel@arm.linux.org.uk, lisovy@gmail.com, s.trumtrar@pengutronix.de, robertcnelson@gmail.com, b29396@freescale.com, linux-arm-kernel@lists.infradead.org, LW@KARO-electronics.de Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 After commit 8d86e4fcccf6 ("mmc: sdhci-esdhc-imx: Call mmc_of_parse()"), it's not used anymore. Signed-off-by: Dong Aisheng --- drivers/mmc/host/sdhci-esdhc-imx.c | 7 +------ include/linux/platform_data/mmc-esdhc-imx.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 1b0e618..c6b9f64 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -581,13 +581,8 @@ static void esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg) static unsigned int esdhc_pltfm_get_max_clock(struct sdhci_host *host) { struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); - struct pltfm_imx_data *imx_data = pltfm_host->priv; - struct esdhc_platform_data *boarddata = &imx_data->boarddata; - if (boarddata->f_max && (boarddata->f_max < pltfm_host->clock)) - return boarddata->f_max; - else - return pltfm_host->clock; + return pltfm_host->clock; } static unsigned int esdhc_pltfm_get_min_clock(struct sdhci_host *host) diff --git a/include/linux/platform_data/mmc-esdhc-imx.h b/include/linux/platform_data/mmc-esdhc-imx.h index 75f70f6..e1571ef 100644 --- a/include/linux/platform_data/mmc-esdhc-imx.h +++ b/include/linux/platform_data/mmc-esdhc-imx.h @@ -43,7 +43,6 @@ struct esdhc_platform_data { enum wp_types wp_type; enum cd_types cd_type; int max_bus_width; - unsigned int f_max; bool support_vsel; unsigned int delay_line; };