From patchwork Mon Aug 13 14:22:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1313231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 4F313DF223 for ; Mon, 13 Aug 2012 14:27:45 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T0vZN-0004XU-PO; Mon, 13 Aug 2012 14:24:38 +0000 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1T0vXn-0003pJ-EP for linux-arm-kernel@lists.infradead.org; Mon, 13 Aug 2012 14:23:00 +0000 Received: from mail-ob0-f176.google.com ([209.85.214.176]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKUCkNwXYMIOkpKfvCW9xuW6vF4oyoiGvP@postini.com; Mon, 13 Aug 2012 07:22:59 PDT Received: by obbtb18 with SMTP id tb18so6572317obb.7 for ; Mon, 13 Aug 2012 07:22:57 -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=/azsot2Vr3pj/aAlZ8VQVtaxOSA/0gCkbYz5DThDCv0=; b=adXFO9OhVObLkVzc/35xJvnyBKtNt2y1D8F5+vstkQbUPmc08cU9ewJvyVfRXdx/fz STSBEvOZs15xhzC0xaUGIu6w0Scx59n9OppqGqJp0rGaXhNm8FZO4bIihB53o580uuXl xY1SkpGIHGi15dNnAoLfBvFBCycuvG3f0oksLFQ7XxppV50JYrsHU9H+0dNSCEOWuL6f hefYMpjXGhI/Dd1p+KUvxKFCVqwwf80da0nbBCxjsIgykSjR+0obGS2uu87ORS/L18jP MqF7kX81cp86QbDOCo+Y7PQ7rFPA2iT5Bfyzb7utu/EbMjJ5th2W5Wh839jaKqS3XTLy fShg== Received: by 10.182.164.103 with SMTP id yp7mr12072949obb.26.1344867777310; Mon, 13 Aug 2012 07:22:57 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id th3sm6355591obb.6.2012.08.13.07.22.54 (version=SSLv3 cipher=OTHER); Mon, 13 Aug 2012 07:22:56 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Subject: [PATCH v2 8/9] ARM: OMAP2+: McBSP: Do not create legacy devices when booting with DT data Date: Mon, 13 Aug 2012 17:22:47 +0300 Message-Id: <1344867768-26335-9-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344867768-26335-1-git-send-email-peter.ujfalusi@ti.com> References: <1344867768-26335-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQnDuySF1BUuT2ixkbhJ4fDn68aX3BNCoLWyrXmZh+633rBpkTN8W3SVp34Ev/PSkDp45sDC 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.209 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 660e00b..d57a357 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 @@ -113,7 +114,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; }