From patchwork Tue May 11 09:35:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 98668 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 o4B9YQFP007399 for ; Tue, 11 May 2010 09:34:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932350Ab0EKJen (ORCPT ); Tue, 11 May 2010 05:34:43 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:59471 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932341Ab0EKJem (ORCPT ); Tue, 11 May 2010 05:34:42 -0400 Received: by mail-pw0-f46.google.com with SMTP id 5so2125507pwi.19 for ; Tue, 11 May 2010 02:34:42 -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=aC4HGt39qtcPFnCOdQXRTJp5FdmQBswuomWUT2swcvE=; b=avayZZxqS1BQIYGetOGhQgkuUSHOWJOnX8+4+/drX/uMsUfddsMxXaS/LUYsGvWFk7 bEMRTdw+2RIaliAMENexxaWZaw0midFRLpvx0p/4zGCka6I3bEo65GOZlfggxmzwQTD0 sItEsg9A5pOwcKvejls+bSvKJBYHmMstdayVM= 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=LB8GAb/WVLC/sG2tSLpdxsX+E9Ip9Uogz16YpUDecosWOkCD2lC4X6n6OyA6j1omxJ OaDNXjYJrDHWDHGQzRuZk61s6LTSD0nGYcUFcaUFQicyful0ZkRozo/bkOYt/M9MVn8V FJeLbKKlUumfWZoLCaQ3/YStOlQqSOSVqd1mQ= Received: by 10.115.84.32 with SMTP id m32mr4226782wal.103.1273570482249; Tue, 11 May 2010 02:34:42 -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 v13sm33653430wav.2.2010.05.11.02.34.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 02:34:41 -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:55 +0900 Message-Id: <20100511093555.28210.19747.sendpatchset@t400s> In-Reply-To: <20100511093504.28210.25670.sendpatchset@t400s> References: <20100511093504.28210.25670.sendpatchset@t400s> Subject: [PATCH 06/15] sh: switch sh7366 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:44 +0000 (UTC) --- 0019/arch/sh/kernel/cpu/sh4a/clock-sh7366.c +++ work/arch/sh/kernel/cpu/sh4a/clock-sh7366.c 2010-05-11 16:50:43.000000000 +0900 @@ -37,8 +37,6 @@ /* Fixed 32 KHz root clock for RTC and Power Management purposes */ static struct clk r_clk = { - .name = "rclk", - .id = -1, .rate = 32768, }; @@ -47,8 +45,6 @@ static struct clk r_clk = { * from the platform code. */ struct clk extal_clk = { - .name = "extal", - .id = -1, .rate = 33333333, }; @@ -70,8 +66,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, @@ -95,8 +89,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, }; @@ -203,6 +195,12 @@ static struct clk mstp_clks[MSTP_NR] = { #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]),