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: 3170561 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 8B2A1C045C for ; Tue, 12 Nov 2013 03:32:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9578420148 for ; Tue, 12 Nov 2013 03:32:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3159201FD for ; Tue, 12 Nov 2013 03:32:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751336Ab3KLDc3 (ORCPT ); Mon, 11 Nov 2013 22:32:29 -0500 Received: from mail-we0-f178.google.com ([74.125.82.178]:59557 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751645Ab3KLDc1 (ORCPT ); Mon, 11 Nov 2013 22:32:27 -0500 Received: by mail-we0-f178.google.com with SMTP id q59so5371942wes.37 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 Cc: linux-pcmcia@lists.infradead.org, linux-fbdev@vger.kernel.org, Russell King 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> 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, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 --- 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