From patchwork Tue Apr 7 05:57:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 6167391 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8FC1FBF4A6 for ; Tue, 7 Apr 2015 05:57:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C28DC20320 for ; Tue, 7 Apr 2015 05:57:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C83EA202F8 for ; Tue, 7 Apr 2015 05:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbbDGF5k (ORCPT ); Tue, 7 Apr 2015 01:57:40 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:34913 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992AbbDGF5j (ORCPT ); Tue, 7 Apr 2015 01:57:39 -0400 Received: by wgyo15 with SMTP id o15so33869135wgy.2 for ; Mon, 06 Apr 2015 22:57:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=iISLF8iBYk+swOV8FpPEjto7M/HcpKuiAaprOZvSv2g=; b=I3C1XeB+PTYisxY7UZJWPv8Nma9Zmeqic74he8nBlOq9fZF5dSiH+vEkyU7FRwwsPy PgdKAN+SnD14wyt52IuFeulr0iwtxZ0meNFgG5l2SHIqPsJTPXUhghemNV2KySdOutVf vxYXCwyK33oSnkcsCoc6yCrwQjaBu7vHMYQ9VutCdKa4ZK9EoNzwanUlOCl7URibz4Om ValrN1pNyy5ds2LogGJeaF6lXInsM2Mxk9wPK+SmB7LTtmvst333qCZqaBrTkq+z2W9d xDMcSgY1uBv88asfSTtePpEDaxDboaKod0AIzARKm+7CDUFgcPjmrmpaLxMKDnSlZbNx Zn7Q== X-Gm-Message-State: ALoCoQmm09JajHpvD24klSOdCy3DMsVJ+0Ge63r9AI3zTXIkwnjBK99nqHn5ARpwdOSHld7117I1 X-Received: by 10.180.88.8 with SMTP id bc8mr1371965wib.19.1428386258737; Mon, 06 Apr 2015 22:57:38 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by mx.google.com with ESMTPSA id bp1sm9335113wjb.31.2015.04.06.22.57.37 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 06 Apr 2015 22:57:37 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Chris Ball , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Subject: [PATCH] mmc: sdhci-of-arasan: Call OF parsing for MMC Date: Tue, 7 Apr 2015 07:57:32 +0200 Message-Id: <35949221633dcbb490c3c28b8099c5be00cb9730.1428386249.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.7.2.3 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=ham 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 Also check MMC OF properties. The controller supports MMC too. Signed-off-by: Michal Simek --- drivers/mmc/host/sdhci-of-arasan.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index bcb51e9..b8cfac1 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -173,6 +173,12 @@ static int sdhci_arasan_probe(struct platform_device *pdev) pltfm_host->priv = sdhci_arasan; pltfm_host->clk = clk_xin; + ret = mmc_of_parse(host->mmc); + if (ret) { + dev_err(&pdev->dev, "parsing dt failed (%u)\n", ret); + goto clk_disable_all; + } + ret = sdhci_add_host(host); if (ret) goto err_pltfm_free;