From patchwork Tue May 11 09:35:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 98667 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 o4B9YQFO007399 for ; Tue, 11 May 2010 09:34:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932348Ab0EKJef (ORCPT ); Tue, 11 May 2010 05:34:35 -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 S932341Ab0EKJee (ORCPT ); Tue, 11 May 2010 05:34:34 -0400 Received: by mail-px0-f174.google.com with SMTP id 5so2114042pxi.19 for ; Tue, 11 May 2010 02:34:34 -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=mQIYWUa1Xb15rzKvZy1KhUPPJJo10/2mYxxEX2QRgnM=; b=s7QG3xlPQ2Wfo0kbUszFRg32/A1MUPI0SI0nx37Wl2eFk2v402QZW9z77xls4c6sgm e01SErqhj9MMsa6AMJVxeRBNunrxl5fR3Nbu8BsQyiDqb3k+KK7RLTHZRFZQuJm93umW JGggPxX+1jjkqSazoZk3ZTTSWQJrc4FLjPQh0= 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=iHLLv2vPNhXMRt10Mh0XtA3lpNfWn3rX2vCl+1Bxf2IcziL/esjlRyOgn5mRg/qxn2 dtqpB7bb0UT/+e5+YEe8kdMV+IjV1pqaOT2Gixg6Qpvid/Ipu5aRXM2URWXoiUt/LPuY t3etjrVsSrdyTVUwvht30+1hImxtTDMErAwrs= Received: by 10.114.188.9 with SMTP id l9mr4237697waf.175.1273570474483; Tue, 11 May 2010 02:34:34 -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 v13sm33637860wav.14.2010.05.11.02.34.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 02:34:32 -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:45 +0900 Message-Id: <20100511093545.28210.430.sendpatchset@t400s> In-Reply-To: <20100511093504.28210.25670.sendpatchset@t400s> References: <20100511093504.28210.25670.sendpatchset@t400s> Subject: [PATCH 05/15] sh: switch sh7343 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:36 +0000 (UTC) --- 0019/arch/sh/kernel/cpu/sh4a/clock-sh7343.c +++ work/arch/sh/kernel/cpu/sh4a/clock-sh7343.c 2010-05-11 16:41:37.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, @@ -92,8 +86,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, }; @@ -205,6 +197,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]),