From patchwork Wed Aug 8 09:11:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1293581 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3EBE23FC23 for ; Wed, 8 Aug 2012 09:16:25 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sz2JZ-0000TX-D8; Wed, 08 Aug 2012 09:12:29 +0000 Received: from na3sys009aog134.obsmtp.com ([74.125.149.83]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sz2JD-0000Op-1h for linux-arm-kernel@lists.infradead.org; Wed, 08 Aug 2012 09:12:08 +0000 Received: from mail-ob0-f175.google.com ([209.85.214.175]) (using TLSv1) by na3sys009aob134.postini.com ([74.125.148.12]) with SMTP ID DSNKUCItZQEFumiq0JDdK9wn+2tjpk6vQtzp@postini.com; Wed, 08 Aug 2012 02:12:06 PDT Received: by obc16 with SMTP id 16so827912obc.6 for ; Wed, 08 Aug 2012 02:12:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=wjp1MRXev/5R8sK9InnbrgRD14JnNzbwAHYGgkPRxlo=; b=KNtNnKLnKWE+Rz2WqF7s3JHy4UBPFT+WeQYtSddAr/6H7evLCCePsX39SnDFRAcLXF iPMcl+JVM+YrT+Ue+rCy8BNOKIQ5m9BF/lPPOxah/UNIT0p+YAz7zxV1JhcWZD1ehBOi Jribb+N06bTVak1QS6OjBA3juM5fwsLfbykH4HW3//CVd16644Ku2+8SdQ3PR1FThPur /TR22a8C9RF0sAR5TkcviD6tGFYP6dqp3VpvVYZ3dGHR5eWKytjV0bLAbrxpnZyFL96K /jgsusLQXxZUsAWijGP4nZVQCUmNl/QBi7xoBhl+nd7sCoSKZn393Rpym3NR4RPB+Wj4 ITiw== Received: by 10.182.110.37 with SMTP id hx5mr28960068obb.48.1344417125095; Wed, 08 Aug 2012 02:12:05 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id cp8sm22099007obc.23.2012.08.08.02.12.01 (version=SSLv3 cipher=OTHER); Wed, 08 Aug 2012 02:12:04 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Subject: [PATCH 02/11] ARM: OMAP2+: McBSP: Do not create legacy devices when booting with DT data Date: Wed, 8 Aug 2012 12:11:32 +0300 Message-Id: <1344417101-5015-3-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344417101-5015-1-git-send-email-peter.ujfalusi@ti.com> References: <1344417101-5015-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQka12sL2zLyVLVNK8av0wgrZZ+k2BMGUg17OONc2giIKRsdbLck76DH2lm7si0nD4Uc9w33 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.83 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alsa-devel@alsa-project.org, Benoit Cousson , devicetree-discuss@lists.ozlabs.org, Jarkko Nikula , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Only create the devices in a legacy way if we do not have the DT data. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/mcbsp.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index ebc801e..57bd7ef 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -187,7 +188,8 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) static int __init omap2_mcbsp_init(void) { - omap_hwmod_for_each_by_class("mcbsp", omap_init_mcbsp, NULL); + if (!of_have_populated_dt()) + omap_hwmod_for_each_by_class("mcbsp", omap_init_mcbsp, NULL); return 0; }