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: 5370731 Return-Path: X-Original-To: patchwork-linux-fbdev@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 2F513C11AC for ; Mon, 24 Nov 2014 23:05:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EB1072015A for ; Mon, 24 Nov 2014 23:05:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C152520158 for ; Mon, 24 Nov 2014 23:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751304AbaKXXFx (ORCPT ); Mon, 24 Nov 2014 18:05:53 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34925 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbaKXXFw (ORCPT ); Mon, 24 Nov 2014 18:05:52 -0500 Received: by mail-wi0-f169.google.com with SMTP id r20so10602456wiv.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 Cc: linux-pcmcia@lists.infradead.org, linux-fbdev@vger.kernel.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> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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