From patchwork Wed Jan 23 15:32:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2025621 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 D039440060 for ; Wed, 23 Jan 2013 15:40:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756021Ab3AWPka (ORCPT ); Wed, 23 Jan 2013 10:40:30 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:57029 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755967Ab3AWPkT (ORCPT ); Wed, 23 Jan 2013 10:40:19 -0500 Received: from axis700.grange (dslb-178-006-250-035.pools.arcor-ip.net [178.6.250.35]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LrIS4-1V1BBL20Wy-013Bpm; Wed, 23 Jan 2013 16:40:16 +0100 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id AB3A440BB7; Wed, 23 Jan 2013 16:40:14 +0100 (CET) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1Ty2Qw-0000Pm-Dp; Wed, 23 Jan 2013 16:40:14 +0100 From: Guennadi Liakhovetski To: linux-mmc@vger.kernel.org Cc: linux-sh@vger.kernel.org, Magnus Damm , Chris Ball , Guennadi Liakhovetski Subject: [PATCH v2 05/11] mmc: sh-mmcif: use mmc_of_parse() to parse standard MMC DT bindings Date: Wed, 23 Jan 2013 16:32:32 +0100 Message-Id: <1358955158-1510-6-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1358955158-1510-1-git-send-email-g.liakhovetski@gmx.de> References: <1358955158-1510-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:DvsNlWI3j+10DPn4OsmX1B9mR9ZaVK0iCY3118HaHPB T3MPyvmNY9j2nSHddE8GillpzHLemX+00t3ykytNn/G+lUkcpa O3pupTdUF8RqJKH0YlJw4RdZ1rRXBp473lokIRxTZROil7F5fX 7nXLgO3ry9iRgbKSWLA03aU732RTPgiKhHkabOI7s0Ylh7B/Ya 9R4EMfHDTY5Izm6gE+52QLtYsyOxdNhEfB3pPpV9g2M1WE5Nl7 XxLzXTXAMfj/h8jHpPK43xPwPwIvX5DB2oyQFmfIj9h4THp6F3 Hn0bnU3O7CiHmRtTrdmr6gwJTKbFkkRsKt4VX9RCtHmOapk5Xh Kh0o+/aW5+479gK3tBRTyVffBwDp8dwagbTbkvz6zhMljtngjU xGY/y4b5u19qg== 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;