From patchwork Wed Jan 16 16:54:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1991741 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B24FCDF2A2 for ; Wed, 16 Jan 2013 16:54:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757933Ab3APQyz (ORCPT ); Wed, 16 Jan 2013 11:54:55 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:57775 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757911Ab3APQyt (ORCPT ); Wed, 16 Jan 2013 11:54:49 -0500 Received: from axis700.grange (dslb-178-006-255-053.pools.arcor-ip.net [178.6.255.53]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MB19w-1TleuB3XVs-00Abi4; Wed, 16 Jan 2013 17:54:48 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 3A4D740B9D; Wed, 16 Jan 2013 17:54:47 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1TvWGE-0006mg-S1; Wed, 16 Jan 2013 17:54:46 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: linux-sh@vger.kernel.org, Magnus Damm Subject: [PATCH 05/11] mmc: sh-mmcif: use mmc_of_parse() to parse standard MMC DT bindings Date: Wed, 16 Jan 2013 17:54:40 +0100 Message-Id: <1358355286-26029-6-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1358355286-26029-1-git-send-email-g.liakhovetski@gmx.de> References: <1358355286-26029-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:qmRp6e4ns9c4BcvwiILvgKGLg134/8Q6nAzk6Do1/Ru pUbKvXhN1j2o85T+WZeYKSXrQ3VNVsQkCIEjX82FrvCAv3qPLO 9S4bqDE8WVQKX9jeCNsEwEUXrleCJybqjMPcGkpam298WIAh2F pApxz0gqXH3KH5THr4PT1ELnjYT/igmEsbGyjQxls2PGxJ16fb vR+pmxy7F+bQ+BPt/rEgdGGJK7cUkbDfyz703AIlL1b7dyUwmX S2YEW9RL4xC1q8HH1+dLfHli13/8pTpLj4ddjGNP6tO1Y5W/1g 9vv/zEzOa0TJNiYVcXWainb/ICuQ1LFE98WNhIfMwBzMQkpoEb OMZwWM5amJe/WQZHQG1aWIBelxztSELjCwRUgYBJXplRDdOY3C 8y8eNz8OLZwYQ== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Use mmc_of_parse() to get interface capability flags and used GPIOs from device-tree bindings. Signed-off-by: Guennadi Liakhovetski --- drivers/mmc/host/sh_mmcif.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 741aeb9..4de94a1 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1329,6 +1329,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) ret = -ENOMEM; goto ealloch; } + mmc_of_parse(mmc); host = mmc_priv(mmc); host->mmc = mmc; host->addr = reg; @@ -1341,7 +1342,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) mmc->ops = &sh_mmcif_ops; sh_mmcif_init_ocr(host); - mmc->caps = MMC_CAP_MMC_HIGHSPEED; + mmc->caps |= MMC_CAP_MMC_HIGHSPEED; if (pd && pd->caps) mmc->caps |= pd->caps; mmc->max_segs = 32;