From patchwork Fri Feb 15 15:13:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2148481 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9DDC43FDF1 for ; Fri, 15 Feb 2013 15:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934192Ab3BOPOZ (ORCPT ); Fri, 15 Feb 2013 10:14:25 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:54289 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758664Ab3BOPOR (ORCPT ); Fri, 15 Feb 2013 10:14:17 -0500 Received: from axis700.grange (dslb-188-109-033-039.pools.arcor-ip.net [188.109.33.39]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0Ln0mX-1UYHE112ZZ-00hJX3; Fri, 15 Feb 2013 16:14:12 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 29F2C40BB7; Fri, 15 Feb 2013 16:14:10 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1U6MzJ-0004jl-Qt; Fri, 15 Feb 2013 16:14:09 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org, linux-sh@vger.kernel.org, Magnus Damm , Simon Horman , Arnd Bergmann , Guennadi Liakhovetski Subject: [PATCH v4 05/13] mmc: sh-mmcif: use mmc_of_parse() to parse standard MMC DT bindings Date: Fri, 15 Feb 2013 16:13:54 +0100 Message-Id: <1360941242-18153-6-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1360941242-18153-1-git-send-email-g.liakhovetski@gmx.de> References: <1360941242-18153-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:PosWYCsfuzwyK3su++qMCc6d5ecCXlelyiFvROPNS0c jDT93RobDRRfq1/2JDUieyNicDMr6btBh77tMA9/PpAr2cXzC0 CAhbAw91s9jSN29/ci1cmqiXqOGn4lux5Pzd5ZUHgyaGWOwgra cNGDkOvMmvdCoRvCA3/VQeMiWbBUPnkbqiHQEhIW0kF0JKUbOo f6csy/dgt80ASWOQPDCfFI3xYJyq7tkOUGZ77V5OYAdVkbY9+t rRQjKo8Bmz7XxQEsiM23Qq9Ci08up1JTdcZJ9xHtmlRka+36EG kKjt9zSwyfvX4BELPfsERMeUVAxAnItSWA1VqRvsxMjDDOBH3f 0U6I8WhF//3qtL0OVceQIRRV2u6DfjBQjMXpLDiS5gtCupS2ec MtYVd+Ukv7zbw== 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 7d05852..adb4f68 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1331,6 +1331,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; @@ -1343,7 +1344,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_CAP_WAIT_WHILE_BUSY; + mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY; if (pd && pd->caps) mmc->caps |= pd->caps; mmc->max_segs = 32;