From patchwork Thu Aug 16 13:41:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1332061 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 62BF3DFB34 for ; Thu, 16 Aug 2012 13:46:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T20LU-0005kX-3O; Thu, 16 Aug 2012 13:42:45 +0000 Received: from na3sys009aog103.obsmtp.com ([74.125.149.71]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1T20KB-0005H5-ND for linux-arm-kernel@lists.infradead.org; Thu, 16 Aug 2012 13:41:24 +0000 Received: from mail-ob0-f174.google.com ([209.85.214.174]) (using TLSv1) by na3sys009aob103.postini.com ([74.125.148.12]) with SMTP ID DSNKUCz4gvA7wZRlY0SzpkzYULrn5qSORxTu@postini.com; Thu, 16 Aug 2012 06:41:23 PDT Received: by obbuo13 with SMTP id uo13so4434004obb.5 for ; Thu, 16 Aug 2012 06:41:21 -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=U0xtm0jUgeBJydbZ6xYCqeAp1H351nVdlQwB9pRETfMc+baRCqhVZ6YqLGz+Qg0xOT VAmwNkAlqzaQghaLC18dw0Ww0+tJ5k8wxRQ7axoCFTZqm0/PhpJtPob7ymrMzTf07ama fwbYrkgykyrHY0fyuXcUYhM2t0/SohzF6qE+Tr4hFNV9RT6LHSVRA7fG0Ile6ZGyhR9s K3nfPCVbwMBt/XNRM0nLDyj3brM8RC/F6nUrrO3ntm2s2UYV4wyIAtzkiR2DbbOZu+fL cDIDPJANvQtTR4oT8L5WV3UXNh+mILfgzJFKamMaE7H5GtDnOtlz6NsYLEhQivV+lbr0 Pb7g== Received: by 10.182.111.74 with SMTP id ig10mr1064214obb.14.1345124481828; Thu, 16 Aug 2012 06:41:21 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id x10sm2977371oeb.8.2012.08.16.06.41.19 (version=SSLv3 cipher=OTHER); Thu, 16 Aug 2012 06:41:21 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Subject: [PATCH v3 8/9] ARM: OMAP2+: McBSP: Do not create legacy devices when booting with DT data Date: Thu, 16 Aug 2012 16:41:07 +0300 Message-Id: <1345124468-8876-9-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1345124468-8876-1-git-send-email-peter.ujfalusi@ti.com> References: <1345124468-8876-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQkKPlZwBNsNqRy6XiemXEYZSvkCV8jNpRZoPRgnRC8V2fRhCTs1uqFcaqukdzAJh6G/T45U 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.71 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 Acked-by: Tony Lindgren --- 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; }