From patchwork Fri Jul 27 12:38:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 10313 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 021FA23E23 for ; Fri, 27 Jul 2012 12:39:16 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id C51C1A19132 for ; Fri, 27 Jul 2012 12:39:15 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id z12so3098255ghb.11 for ; Fri, 27 Jul 2012 05:39:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=gt3+CcpAAngTtaTzLhrylrsZJA6XlOOXzPpYuNEBkX4=; b=mezcF1FiykTbBjk+vRGvZMJy+SfxJE8Lb3CJIJQWWEUxztoPv5G5CUo3BKFKIF3LgV iVBlrstnll3ELUPFTX+HC2So5Dj8jiQVkF76Kg4CxodYWivw/haxr4QpzS4h/P41tj56 JPkljAMGrAe588n2XX94k2LyAdn62rWl/Fax8QVcOmLDbnQqhZ6poU1/vBSwSyzytQLl 1rGs/j19VNxGzIIANyqdQbq9HfDV8DYunaQ8TD96mFAgygc8Kkh1y79I30D6bjUwLUYi q9WbhaYcfWH9i6gEJDCN9cIjHbgSMNusOKU6TJfkefuvVlNISXB3QGHohmjISu0qSx6/ SrnA== Received: by 10.50.159.135 with SMTP id xc7mr4479810igb.1.1343392755265; Fri, 27 Jul 2012 05:39:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.43.93.3 with SMTP id bs3csp29416icc; Fri, 27 Jul 2012 05:39:14 -0700 (PDT) Received: by 10.180.82.164 with SMTP id j4mr5845192wiy.18.1343392753626; Fri, 27 Jul 2012 05:39:13 -0700 (PDT) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx.google.com with ESMTPS id f12si17543255wiw.17.2012.07.27.05.39.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:39:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.170; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f170.google.com with SMTP id hq12so615920wib.1 for ; Fri, 27 Jul 2012 05:39:13 -0700 (PDT) Received: by 10.216.136.72 with SMTP id v50mr1149735wei.203.1343392753123; Fri, 27 Jul 2012 05:39:13 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id ef5sm6242502wib.3.2012.07.27.05.39.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:39:12 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, olalilja@yahoo.se, ola.o.lilja@stericsson.com, sameo@linux.intel.com, alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com, lrg@ti.com, Lee Jones Subject: [PATCH 7/7] ARM: ux500: Ensure probing of Audio devices when Device Tree is enabled Date: Fri, 27 Jul 2012 13:38:54 +0100 Message-Id: <1343392734-11805-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343392734-11805-1-git-send-email-lee.jones@linaro.org> References: <1343392734-11805-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmkh93+AQ4Bg1V7Y92W+QvpOHo7mW6eMcx9IxCE90UOuX+47cEwQ3ojJUFKAxeGYADessX9 Previous attempts to add platform probing of the Audio related devices only call from non-DT initialisation functions. This patch extends that functionality to the Device Tree related ones too. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index e641003..87a5cd7 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -794,6 +794,7 @@ static void __init u8500_init_machine(void) ARRAY_SIZE(mop500_platform_devs)); mop500_sdi_init(parent); + mop500_msp_init(parent); i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); i2c_register_board_info(2, mop500_i2c2_devices, @@ -801,6 +802,8 @@ static void __init u8500_init_machine(void) mop500_uib_init(); + } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { + mop500_of_msp_init(parent); } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { /* * The HREFv60 board removed a GPIO expander and routed @@ -812,6 +815,7 @@ static void __init u8500_init_machine(void) ARRAY_SIZE(mop500_platform_devs)); hrefv60_sdi_init(parent); + mop500_msp_init(parent); i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;