From patchwork Mon Nov 24 23:05:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5370801 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 B0D44C11AC for ; Mon, 24 Nov 2014 23:09:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C932C20154 for ; Mon, 24 Nov 2014 23:09:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CBFF520176 for ; Mon, 24 Nov 2014 23:09:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xt2io-0002kd-Pc; Mon, 24 Nov 2014 23:07:06 +0000 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xt2hx-0002Nk-By; Mon, 24 Nov 2014 23:06:14 +0000 Received: by mail-wi0-f179.google.com with SMTP id ex7so7576846wid.0 for ; Mon, 24 Nov 2014 15:05:51 -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=/UY/VpWuo/2ylnstEDann/9PvdfjFyfkKwkD6ly4bAM=; b=KaQb5T8NOpnoyaaYHGdmD4BX+G+frtBaDO2GbOr5NFF0nOvvdc2V2pcEEzebmwhlGZ TOU9jh/yr6BMI6yqQnsJYA7MAfsSX223y4nVtmyWE9HP6Cr4WmC2h3LmjA5kiYT1Xuvf IpJTzeAkCDXwZhSHLP4j87YmETfQ0FKKOIdvJXX0gGnMNiXUz5s+5wRuHr17I90U0M7y f89JsYRip3M0/v/6ihxqqyUhjb0NqUUC4AhCiakHvzWATUjXB9Pr8bwZodny1S5hf5ET zgwCUDMNQrzNO+yEKcLLVJ5sTdd++br+xwtaltW4WVmuSkE2/JVGhe24tPoeJDiiIheo Eavg== X-Received: by 10.194.121.167 with SMTP id ll7mr31849315wjb.26.1416870351572; Mon, 24 Nov 2014 15:05:51 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id u5sm326051wiz.9.2014.11.24.15.05.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 15:05:50 -0800 (PST) From: Dmitry Eremin-Solenikov To: Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 3/6] fbdev: sa1100fb: make use of device clock Date: Tue, 25 Nov 2014 02:05:33 +0300 Message-Id: <1416870336-30114-4-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1416870336-30114-1-git-send-email-dbaryshkov@gmail.com> References: <1416870336-30114-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141124_150613_621357_156B2459 X-CRM114-Status: GOOD ( 15.98 ) X-Spam-Score: -0.8 (/) Cc: linux-fbdev@vger.kernel.org, linux-pcmcia@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Acked-by: Tomi Valkeinen --- drivers/video/fbdev/sa1100fb.c | 30 +++++++++++++++++++++++------- drivers/video/fbdev/sa1100fb.h | 1 + 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/drivers/video/fbdev/sa1100fb.c b/drivers/video/fbdev/sa1100fb.c index 580c444e..2133cf1 100644 --- a/drivers/video/fbdev/sa1100fb.c +++ b/drivers/video/fbdev/sa1100fb.c @@ -178,6 +178,7 @@ #include #include #include +#include #include