From patchwork Wed May 6 18:31:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 6352021 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1914E9F32E for ; Wed, 6 May 2015 18:31:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A11520115 for ; Wed, 6 May 2015 18:31:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6AEF620328 for ; Wed, 6 May 2015 18:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751454AbbEFSba (ORCPT ); Wed, 6 May 2015 14:31:30 -0400 Received: from smtp-out-205.synserver.de ([212.40.185.205]:1094 "EHLO smtp-out-205.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbbEFSb2 (ORCPT ); Wed, 6 May 2015 14:31:28 -0400 Received: (qmail 20593 invoked by uid 0); 6 May 2015 18:31:26 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 20432 Received: from p4fc461a9.dip0.t-ipconnect.de (HELO lars-adi-laptop.analog.com) [79.196.97.169] by 217.119.54.73 with SMTP; 6 May 2015 18:31:26 -0000 From: Lars-Peter Clausen To: Ulf Hansson Cc: Seungwon Jeon , Jaehoon Chung , Michal Simek , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Thomas Abraham , Mike Looijmans , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH v2 3/4] mmc: sdhci-of-arasan: Call mmc_of_parse() Date: Wed, 6 May 2015 20:31:21 +0200 Message-Id: <1430937082-27149-3-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1430937082-27149-1-git-send-email-lars@metafoo.de> References: <1430937082-27149-1-git-send-email-lars@metafoo.de> 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, T_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 The device-tree documentation for the Arasan SDHCI controller already claims that it supports the standard MMC devicetree properties. Update the driver implementation accordingly by calling mmc_of_parse(). Signed-off-by: Lars-Peter Clausen --- drivers/mmc/host/sdhci-of-arasan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 21c0c08..538fd81 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -175,6 +175,10 @@ static int sdhci_arasan_probe(struct platform_device *pdev) } sdhci_get_of_property(pdev); + ret = mmc_of_parse(host->mmc); + if (ret) + goto clk_disable_all; + pltfm_host = sdhci_priv(host); pltfm_host->priv = sdhci_arasan; pltfm_host->clk = clk_xin;