From patchwork Tue May 11 09:35:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 98665 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4B9YJoD007227 for ; Tue, 11 May 2010 09:34:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932347Ab0EKJeS (ORCPT ); Tue, 11 May 2010 05:34:18 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:65227 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932342Ab0EKJeR (ORCPT ); Tue, 11 May 2010 05:34:17 -0400 Received: by mail-px0-f174.google.com with SMTP id 5so2114042pxi.19 for ; Tue, 11 May 2010 02:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=PTVAytIbBG5UzqfJ/f6dLzrd3QBfCPPyP9EnUMl1vQk=; b=vf4qxQ//+uBlDyDB0WLMhZ6BKXZPTmn1rqsvujjAQx828xR8hryLYuoxyxsYwjdFZ/ 0gaJEEknpqr2eiWYLabZKcb7b8emF6cbNhLOnxU6fEVIkOHxyLoWFgbMbKpHeAqooDFB 7OQeYrZv+J9Lw/wQVuCO2+oi9x7RyeeePg+dQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=JXVGjL35lYZfXLIdNoh5qh/ijbOlWJHyW8LhHuwJy4N/2WqYdgA8rAhQw3skSJ4348 OOIvbJ1YaSV2clz+J5SVsSQm0HCNEbTkzxtK2+6iECUFDasR7tYp/f8Of5lC/vvRlL4o kfEwz2z7++QzOTaq5xzlb2X2o0IsZXq6e6DPE= Received: by 10.115.102.36 with SMTP id e36mr4243669wam.126.1273570456887; Tue, 11 May 2010 02:34:16 -0700 (PDT) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id n32sm33625576wae.22.2010.05.11.02.34.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 02:34:16 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Tue, 11 May 2010 18:35:27 +0900 Message-Id: <20100511093527.28210.19380.sendpatchset@t400s> In-Reply-To: <20100511093504.28210.25670.sendpatchset@t400s> References: <20100511093504.28210.25670.sendpatchset@t400s> Subject: [PATCH 03/15] sh: switch sh7723 to clkdev Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 11 May 2010 09:34:19 +0000 (UTC) --- 0019/arch/sh/kernel/cpu/sh4a/clock-sh7723.c +++ work/arch/sh/kernel/cpu/sh4a/clock-sh7723.c 2010-05-11 16:35:38.000000000 +0900 @@ -38,8 +38,6 @@ /* Fixed 32 KHz root clock for RTC and Power Management purposes */ static struct clk r_clk = { - .name = "rclk", - .id = -1, .rate = 32768, }; @@ -48,8 +46,6 @@ static struct clk r_clk = { * from the platform code. */ struct clk extal_clk = { - .name = "extal", - .id = -1, .rate = 33333333, }; @@ -71,8 +67,6 @@ static struct clk_ops dll_clk_ops = { }; static struct clk dll_clk = { - .name = "dll_clk", - .id = -1, .ops = &dll_clk_ops, .parent = &r_clk, .flags = CLK_ENABLE_ON_INIT, @@ -96,8 +90,6 @@ static struct clk_ops pll_clk_ops = { }; static struct clk pll_clk = { - .name = "pll_clk", - .id = -1, .ops = &pll_clk_ops, .flags = CLK_ENABLE_ON_INIT, }; @@ -211,6 +203,12 @@ static struct clk mstp_clks[] = { #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } static struct clk_lookup lookups[] = { + /* main clocks */ + CLKDEV_CON_ID("rclk", &r_clk), + CLKDEV_CON_ID("extal", &extal_clk), + CLKDEV_CON_ID("dll_clk", &dll_clk), + CLKDEV_CON_ID("pll_clk", &pll_clk), + /* DIV4 clocks */ CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), CLKDEV_CON_ID("umem_clk", &div4_clks[DIV4_U]),