From patchwork Thu Apr 14 08:13:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 706431 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3E8EmZE012259 for ; Thu, 14 Apr 2011 08:14:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757127Ab1DNIOr (ORCPT ); Thu, 14 Apr 2011 04:14:47 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:34931 "EHLO relmlor2.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756786Ab1DNIOr (ORCPT ); Thu, 14 Apr 2011 04:14:47 -0400 Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor2.idc.renesas.com ( SJSMS) with ESMTP id <0LJM00A3JUV5OXE0@relmlor2.idc.renesas.com> for linux-sh@vger.kernel.org; Thu, 14 Apr 2011 17:13:53 +0900 (JST) Received: from relmlac2.idc.renesas.com ([10.200.69.22]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LJM00ERLUV5TGC0@relmlir2.idc.renesas.com> for linux-sh@vger.kernel.org; Thu, 14 Apr 2011 17:13:53 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id B888828088; Thu, 14 Apr 2011 17:13:53 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id A845D28070; Thu, 14 Apr 2011 17:13:53 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id TAM24116; Thu, 14 Apr 2011 17:13:53 +0900 Date: Thu, 14 Apr 2011 17:13:53 +0900 X-IronPort-AV: E=Sophos; i="4.64,210,1301842800"; d="scan'208"; a="21658158" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii2.idc.renesas.com with ESMTP; Thu, 14 Apr 2011 17:13:53 +0900 Message-id: From: Kuninori Morimoto To: Paul Mundt Cc: Simon , Magnus , Linux-SH , yoshii (RSO) Subject: [PATCH] sh: clkfwk: fixup clk_rate_table_build parameter in div6 clock User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII 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.6 (demeter1.kernel.org [140.211.167.41]); Thu, 14 Apr 2011 08:14:49 +0000 (UTC) div6 clock should not use arch_flags for clk_rate_table_build, because SH_CLK_DIV6_EXT doesn't care .arch_flags. clk->freq_table[] will be all CPUFREQ_ENTRY_INVALID without this patch. Signed-off-by: Kuninori Morimoto --- drivers/sh/clk/cpg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c index 6172335..82dd6fb 100644 --- a/drivers/sh/clk/cpg.c +++ b/drivers/sh/clk/cpg.c @@ -105,7 +105,7 @@ static int sh_clk_div6_set_parent(struct clk *clk, struct clk *parent) /* Rebuild the frequency table */ clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, - table, &clk->arch_flags); + table, NULL); return 0; }