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: 1293471 Return-Path: X-Original-To: patchwork-linux-omap@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 249DE3FCFC for ; Wed, 8 Aug 2012 09:12:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964901Ab2HHJMJ (ORCPT ); Wed, 8 Aug 2012 05:12:09 -0400 Received: from na3sys009aog128.obsmtp.com ([74.125.149.141]:49695 "EHLO na3sys009aog128.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964870Ab2HHJMG (ORCPT ); Wed, 8 Aug 2012 05:12:06 -0400 Received: from mail-ob0-f178.google.com ([209.85.214.178]) (using TLSv1) by na3sys009aob128.postini.com ([74.125.148.12]) with SMTP ID DSNKUCItZQEFumiq0JDdK9wn+2tjpk6vQtzp@postini.com; Wed, 08 Aug 2012 02:12:06 PDT Received: by obbwd20 with SMTP id wd20so900345obb.9 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=Xwx+sIe8FuYuP/pe90u81NCVSJncwADZdNQVTm2Zgc0yRJYQKW4KjQ5qxN8bfljzk7 gBADxRcNLKguxNVScZ+23YfCbX2UkM+Qg3IxcAISfbGSOmu7qGiTcaHZZDgqH8DM0IsF 6Yj1EbocjltHqYV/klgTfcWZqDwwzfiszGY/1Ek7O8BbMO5hUVtRIpNPWfOcUEbmUS6b /C4J/cqfASOOAqNqpOzbGkSFy6ZX+hQtQocimeCwFIUTLK9Mqup2G8yOY0xNI+kW6KDA PIE8DBoqjgv6XLF8MvVxOPJTSct/seg8Qd2rvSq2RX0r0KUEZvJcKdbGODs4SzyG8uuC EcTg== 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 Cc: Jarkko Nikula , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, Benoit Cousson 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: ALoCoQl5uZT5L+DQ3BgABkwiud1KxaRSbFovvVq7SDo9f7ALq2/OB+HeU5yjRlYMCrVRQO0sh1Sn Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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; }