From patchwork Fri Aug 24 15:14:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1371801 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 23246DF28C for ; Fri, 24 Aug 2012 15:18:00 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4vb4-0006ap-T2; Fri, 24 Aug 2012 15:14:55 +0000 Received: from mail-ee0-f49.google.com ([74.125.83.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T4vb2-0006aC-87 for linux-arm-kernel@lists.infradead.org; Fri, 24 Aug 2012 15:14:53 +0000 Received: by eekc13 with SMTP id c13so698488eek.36 for ; Fri, 24 Aug 2012 08:14:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=N6v65eccL/ok4KpvHtl2AIRJYFmq8PXU6RjgCmGvgrg=; b=JXzfpAA4Zd9RlbUNL+BJihNn0cQ/0UdJObfXsndkPYw5MzNvFD44cC0Q+knpc6pYMd GilFIaD0+RlDFMP7t54n6AA5pcq7dE/DUhTI4ONLiIobXwcOd3+6aHB6w7CssYlYrFvE mowa1qbXf2TvwqhxyCkXgkx4soySEAPxBGFa+0RAgKzzZHpLgCona7UuAcU8OahyJyQf WFD/wlGHIFPWcrU74WjNVpaBXd2Hj9U8weC9UmsMV6GiHAsATCgZYQbaNbIniI/qAOzR GXXCScBZjjWNYXhEVtmsQcBKGo1S1kSKEas1qaelsDKMMzXmzp7KNUsH6KLsdmwwYNmj IhbQ== Received: by 10.14.5.67 with SMTP id 43mr7907639eek.15.1345821290765; Fri, 24 Aug 2012 08:14:50 -0700 (PDT) Received: from gmail.com (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id v3sm30648019eep.10.2012.08.24.08.14.49 (version=SSLv3 cipher=OTHER); Fri, 24 Aug 2012 08:14:50 -0700 (PDT) Date: Fri, 24 Aug 2012 16:14:47 +0100 From: Lee Jones To: "Hebbar, Gururaja" Subject: Re: [alsa-devel] [PATCH 14/17] ARM: ux500: Rename MSP board file to something more meaningful Message-ID: <20120824151446.GQ32491@gmail.com> References: <1345816913-4113-1-git-send-email-lee.jones@linaro.org> <1345816913-4113-15-git-send-email-lee.jones@linaro.org> <1BAFE6F6C881BF42822005164F1491C33EA69B3A@DBDE01.ent.ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1BAFE6F6C881BF42822005164F1491C33EA69B3A@DBDE01.ent.ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQnXNtjTaW33xc7hD5te/BEcdxBxN/AGZq9wWL/GJROM/qkIB2GN/OvqqKi6Oxcq5wWYoN6X X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.83.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: "ola.o.lilja@stericsson.com" , "alsa-devel@alsa-project.org" , "linus.walleij@stericsson.com" , "arnd@arndb.de" , "roger.xr.nilsson@stericsson.com" , "broonie@opensource.wolfsonmicro.com" , "linux-kernel@vger.kernel.org" , "STEricsson_nomadik_linux@list.st.com" , "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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Like this? From: Lee Jones Date: Fri, 24 Aug 2012 13:16:06 +0100 Subject: [PATCH 1/1] ARM: ux500: Rename MSP board file to something more meaningful The 'msp' board file does more than just register MSP devices. It also registers some other components necessary to get audio working on ux500 based platforms; such as the PCM and Machine Drivers. For that reason we're changing the filename to be more encompassing - 'audio'. Acked-by: Linus Walleij Signed-off-by: Lee Jones --- arch/arm/mach-ux500/Makefile | 2 +- .../{board-mop500-msp.c => board-mop500-audio.c} | 16 ++++++++-------- arch/arm/mach-ux500/board-mop500.c | 12 ++++++------ arch/arm/mach-ux500/board-mop500.h | 4 ++-- 4 files changed, 17 insertions(+), 17 deletions(-) rename arch/arm/mach-ux500/{board-mop500-msp.c => board-mop500-audio.c} (98%) diff --git a/arch/arm/mach-ux500/Makefile b/arch/arm/mach-ux500/Makefile index 026086f..1dc2cfa 100644 --- a/arch/arm/mach-ux500/Makefile +++ b/arch/arm/mach-ux500/Makefile @@ -12,6 +12,6 @@ obj-$(CONFIG_MACH_MOP500) += board-mop500.o board-mop500-sdi.o \ board-mop500-uib.o board-mop500-stuib.o \ board-mop500-u8500uib.o \ board-mop500-pins.o \ - board-mop500-msp.o + board-mop500-audio.o obj-$(CONFIG_SMP) += platsmp.o headsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o diff --git a/arch/arm/mach-ux500/board-mop500-msp.c b/arch/arm/mach-ux500/board-mop500-audio.c similarity index 98% rename from arch/arm/mach-ux500/board-mop500-msp.c rename to arch/arm/mach-ux500/board-mop500-audio.c index 2af017f..18f6c5a 100644 --- a/arch/arm/mach-ux500/board-mop500-msp.c +++ b/arch/arm/mach-ux500/board-mop500-audio.c @@ -172,14 +172,7 @@ struct msp_i2s_platform_data msp3_platform_data = { .msp_i2s_dma_tx = NULL, }; -/* Due for removal once the MSP driver has been fully DT:ed. */ -void mop500_of_msp_init(struct device *parent) -{ - pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__); - platform_device_register(&ux500_pcm); -} - -void mop500_msp_init(struct device *parent) +void mop500_audio_init(struct device *parent) { pr_info("%s: Register platform-device 'snd-soc-mop500'.\n", __func__); platform_device_register(&snd_soc_mop500); @@ -197,3 +190,10 @@ void mop500_msp_init(struct device *parent) pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__); platform_device_register(&ux500_pcm); } + +/* Due for removal once the MSP driver has been fully DT:ed. */ +void mop500_of_audio_init(struct device *parent) +{ + pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__); + platform_device_register(&ux500_pcm); +} diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 0c141d5..7152635 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -607,7 +607,7 @@ static void __init mop500_init_machine(void) mop500_i2c_init(parent); mop500_sdi_init(parent); mop500_spi_init(parent); - mop500_msp_init(parent); + mop500_audio_init(parent); mop500_uart_init(parent); u8500_cryp1_hash1_init(parent); @@ -641,7 +641,7 @@ static void __init snowball_init_machine(void) mop500_i2c_init(parent); snowball_sdi_init(parent); mop500_spi_init(parent); - mop500_msp_init(parent); + mop500_audio_init(parent); mop500_uart_init(parent); /* This board has full regulator constraints */ @@ -673,7 +673,7 @@ static void __init hrefv60_init_machine(void) mop500_i2c_init(parent); hrefv60_sdi_init(parent); mop500_spi_init(parent); - mop500_msp_init(parent); + mop500_audio_init(parent); mop500_uart_init(parent); i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); @@ -807,7 +807,7 @@ static void __init u8500_init_machine(void) ARRAY_SIZE(mop500_platform_devs)); mop500_sdi_init(parent); - mop500_msp_init(parent); + mop500_audio_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, @@ -816,7 +816,7 @@ static void __init u8500_init_machine(void) mop500_uib_init(); } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { - mop500_of_msp_init(parent); + mop500_of_audio_init(parent); } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { /* * The HREFv60 board removed a GPIO expander and routed @@ -828,7 +828,7 @@ static void __init u8500_init_machine(void) ARRAY_SIZE(mop500_platform_devs)); hrefv60_sdi_init(parent); - mop500_msp_init(parent); + mop500_audio_init(parent); i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES; diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h index 3fbf48f..9e9dd5a 100644 --- a/arch/arm/mach-ux500/board-mop500.h +++ b/arch/arm/mach-ux500/board-mop500.h @@ -97,9 +97,9 @@ void __init mop500_stuib_init(void); void __init mop500_pinmaps_init(void); void __init snowball_pinmaps_init(void); void __init hrefv60_pinmaps_init(void); -void mop500_msp_init(struct device *parent); +void mop500_audio_init(struct device *parent); /* Due for removal once the MSP driver has been fully DT:ed. */ -void mop500_of_msp_init(struct device *parent); +void mop500_of_audio_init(struct device *parent); int __init mop500_uib_init(void); void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info,