From patchwork Tue Nov 12 03:32:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 3170601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 52203C045B for ; Tue, 12 Nov 2013 03:33:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D92120320 for ; Tue, 12 Nov 2013 03:33:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5AA9D201FD for ; Tue, 12 Nov 2013 03:33:06 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vg4in-0003w5-Ej; Tue, 12 Nov 2013 03:32:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vg4il-0001ek-1O; Tue, 12 Nov 2013 03:32:55 +0000 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vg4ih-0001dW-0m; Tue, 12 Nov 2013 03:32:51 +0000 Received: by mail-wi0-f171.google.com with SMTP id hn6so165144wib.16 for ; Mon, 11 Nov 2013 19:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3xE2FzOf9c559ivTEEi869P/yZ/OcI7mqJdx6mucgvo=; b=Yp9ie2FJ9BY3koHe0aRaFJ5mvUned2xWJTPj+ZmWdBb9NuLQzCeaMnWynwoUpUyy/t +Kr+EhO7+EpFukh4OOwsxQgesX27+41LEtSVFXXficd5b0D6r3EZfALeACB0YLzxV4Fh N7nLpghjVuvvulL/7LfoHc83XVrk50Y+2l8nCdcxA+81kKuQETFPExmR+d9M6MPRufl5 cKvckkb84Y1ZiZMMFCGonbrpfgsGcKfxYlkWd/RBYLvLcyT0fh+16jP4+FIZbaZEPDZc nEhIHQhnkf63wlh8RJVUoXjNwV35fLZ4ihsodDm9X3+lytqMYb7SfR7Q0P5YCTn8Ve2+ V48w== X-Received: by 10.180.211.71 with SMTP id na7mr14719445wic.5.1384227146333; Mon, 11 Nov 2013 19:32:26 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id i8sm40087381wiy.6.2013.11.11.19.32.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Nov 2013 19:32:25 -0800 (PST) From: Dmitry Eremin-Solenikov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] fbdev: sa1100fb: make use of device clock Date: Tue, 12 Nov 2013 07:32:09 +0400 Message-Id: <1384227132-10501-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1384227132-10501-1-git-send-email-dbaryshkov@gmail.com> References: <1384227132-10501-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131111_223251_211203_4BFBBC96 X-CRM114-Status: GOOD ( 13.26 ) X-Spam-Score: -2.0 (--) Cc: linux-fbdev@vger.kernel.org, linux-pcmcia@lists.infradead.org, Russell King X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use per-device clock (instead of calling cpufreq_get(0), which can return 0 if no cpu frequency driver is selected) to program timings. Signed-off-by: Dmitry Eremin-Solenikov --- drivers/video/sa1100fb.c | 24 +++++++++++++++++------- drivers/video/sa1100fb.h | 1 + 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c index de76da0..05d1b37 100644 --- a/drivers/video/sa1100fb.c +++ b/drivers/video/sa1100fb.c @@ -178,6 +178,7 @@ #include #include #include +#include #include