From patchwork Mon May 31 11:19:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 103262 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 o4VBK10g012733 for ; Mon, 31 May 2010 11:20:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751373Ab0EaLUA (ORCPT ); Mon, 31 May 2010 07:20:00 -0400 Received: from hall.aurel32.net ([88.191.82.174]:55911 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132Ab0EaLUA (ORCPT ); Mon, 31 May 2010 07:20:00 -0400 Received: from anguille.univ-lyon1.fr ([134.214.4.207]) by hall.aurel32.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OJ32D-0006My-C3; Mon, 31 May 2010 13:19:57 +0200 Message-ID: <4C039B57.6010109@aurel32.net> Date: Mon, 31 May 2010 13:19:51 +0200 From: Aurelien Jarno User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Magnus Damm CC: Paul Mundt , linux-sh@vger.kernel.org Subject: Re: [PATCH] sh_tmu: compute mult and shift before registration References: <1275296994-12005-1-git-send-email-aurelien@aurel32.net> In-Reply-To: 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]); Mon, 31 May 2010 11:20:01 +0000 (UTC) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index 8e44e14..6f0fcfd 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c @@ -228,6 +228,8 @@ static int sh_tmu_register_clocksource(struct sh_tmu_priv *p, cs->disable = sh_tmu_clocksource_disable; cs->mask = CLOCKSOURCE_MASK(32); cs->flags = CLOCK_SOURCE_IS_CONTINUOUS; + sh_tmu_clocksource_enable(cs); + sh_tmu_clocksource_disable(cs); dev_info(&p->pdev->dev, "used as clock source\n"); clocksource_register(cs);