From patchwork Thu Apr 14 08:13:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 706421 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 p3E8DTwb011583 for ; Thu, 14 Apr 2011 08:13:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757127Ab1DNIN3 (ORCPT ); Thu, 14 Apr 2011 04:13:29 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:56697 "EHLO relmlor3.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756786Ab1DNIN2 (ORCPT ); Thu, 14 Apr 2011 04:13:28 -0400 Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor3.idc.renesas.com ( SJSMS) with ESMTP id <0LJM007CAUUE33E0@relmlor3.idc.renesas.com> for linux-sh@vger.kernel.org; Thu, 14 Apr 2011 17:13:26 +0900 (JST) Received: from relmlac2.idc.renesas.com ([10.200.69.22]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LJM00EN4UUETGC0@relmlir2.idc.renesas.com> for linux-sh@vger.kernel.org; Thu, 14 Apr 2011 17:13:26 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 9520928076; Thu, 14 Apr 2011 17:13:26 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 5F33B78002; Thu, 14 Apr 2011 17:13:26 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id TAB23916; Thu, 14 Apr 2011 17:13:26 +0900 Date: Thu, 14 Apr 2011 17:13:22 +0900 X-IronPort-AV: E=Sophos; i="4.64,210,1301842800"; d="scan'208"; a="21657950" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii2.idc.renesas.com with ESMTP; Thu, 14 Apr 2011 17:13:22 +0900 Message-id: From: Kuninori Morimoto To: Paul Mundt Cc: Simon , Magnus , Linux-SH , yoshii (RSO) Subject: [PATCH] ARM: mach-shmobile: clock-sh7372: remove status check from fsidiv_recalc 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:13:29 +0000 (UTC) clock status check is not needed in recalc function. clk->rate will be 0 in clk_set_rate without this patch. Signed-off-by: Kuninori Morimoto --- arch/arm/mach-shmobile/clock-sh7372.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/clock-sh7372.c b/arch/arm/mach-shmobile/clock-sh7372.c index e9731b5..6c79b40 100644 --- a/arch/arm/mach-shmobile/clock-sh7372.c +++ b/arch/arm/mach-shmobile/clock-sh7372.c @@ -421,9 +421,6 @@ static unsigned long fsidiv_recalc(struct clk *clk) value = __raw_readl(clk->mapping->base); - if ((value & 0x3) != 0x3) - return 0; - value >>= 16; if (value < 2) return 0;