From patchwork Mon Apr 14 00:56:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3975661 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 831479F2BA for ; Mon, 14 Apr 2014 01:09:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C30D6201BA for ; Mon, 14 Apr 2014 01:09:20 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7FBE42018A for ; Mon, 14 Apr 2014 01:09:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9B90A2651C6; Mon, 14 Apr 2014 03:09:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1DAC4262607; Mon, 14 Apr 2014 03:07:24 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E3C1E2625E3; Mon, 14 Apr 2014 03:07:20 +0200 (CEST) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by alsa0.perex.cz (Postfix) with ESMTP id 302E826260F for ; Mon, 14 Apr 2014 02:56:59 +0200 (CEST) Received: by mail-pb0-f54.google.com with SMTP id ma3so7611590pbc.27 for ; Sun, 13 Apr 2014 17:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=Tstlh2nF9+KhOzk2lUb6ffcgaDq9FzwW6/Pc9VM0Vok=; b=guQFudykZDre91t6lB80BKT3gIZqOzimJRA1ApIJjpy55VZQEZXtvaXvwIykqTXhm4 Edlmd3Kwv8fMU6h25pLnQX2J1uwpcYfYYAX06LD8uOchws/L+KVgv4wcBeBDRnxL4yyl is1e7nrbCOrdu05QBb162kKfsk3M1gR0vCi0RO8bU/lWg5Zb+N87L3+0GwklYDwCBMz9 +0Bcfif5nirbdRwxeUf9VXD9Q838ptmDj+cdd5HnV+ki9WTXEXi45ztFlZ4O6AE/I0pJ mZ8DJPyTUDXkQwxmlEyPOvC7DAHJDRj9dYibwE4fmbwgPIFFpjcIbCpDaRqm10d1wYlh 2dAw== X-Received: by 10.68.136.226 with SMTP id qd2mr26266054pbb.72.1397437018309; Sun, 13 Apr 2014 17:56:58 -0700 (PDT) Received: from remon.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id it4sm30166241pbd.48.2014.04.13.17.56.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 13 Apr 2014 17:56:57 -0700 (PDT) Date: Sun, 13 Apr 2014 17:56:57 -0700 (PDT) Message-ID: <87ob0420fc.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon , broonie@kernel.org In-Reply-To: <87sipg20h1.wl%kuninori.morimoto.gx@gmail.com> References: <87sipg20h1.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: alsa-devel@alsa-project.org, Magnus , Kuninori Morimoto , linux-sh@vger.kernel.org Subject: [alsa-devel] [PATCH 3/7] ARM: shmobile: bockw: remove old style audio clock X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Current audio clock didn't have dependency to device/driver, but, it was not good design for DT support. To avoid branch merge conflict issue, it is using this load map, and this patch is 3) part. 1) add new style clock in platform 2) add new style clock method in driver 3) remove old tyle clock from platform Signed-off-by: Kuninori Morimoto --- arch/arm/mach-shmobile/board-bockw.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index b4122f8..1aca107 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -591,6 +591,7 @@ static void __init bockw_init(void) { void __iomem *base; struct clk *clk; + struct platform_device *pdev; int i; r8a7778_clock_init(); @@ -673,9 +674,6 @@ static void __init bockw_init(void) } /* for Audio */ - clk = clk_get(NULL, "audio_clk_b"); - clk_set_rate(clk, 24576000); - clk_put(clk); rsnd_codec_power(5, 1); /* enable ak4642 */ platform_device_register_simple( @@ -684,11 +682,15 @@ static void __init bockw_init(void) platform_device_register_simple( "ak4554-adc-dac", 1, NULL, 0); - platform_device_register_resndata( + pdev = platform_device_register_resndata( &platform_bus, "rcar_sound", -1, rsnd_resources, ARRAY_SIZE(rsnd_resources), &rsnd_info, sizeof(rsnd_info)); + clk = clk_get(&pdev->dev, "clk_b"); + clk_set_rate(clk, 24576000); + clk_put(clk); + for (i = 0; i < ARRAY_SIZE(rsnd_card_info); i++) { struct platform_device_info cardinfo = { .parent = &platform_bus,