From patchwork Thu Nov 6 07:41:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5239551 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 663F9C11AC for ; Thu, 6 Nov 2014 07:41:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45F802010C for ; Thu, 6 Nov 2014 07:41:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20576200D6 for ; Thu, 6 Nov 2014 07:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbaKFHlr (ORCPT ); Thu, 6 Nov 2014 02:41:47 -0500 Received: from mail-wg0-f53.google.com ([74.125.82.53]:54291 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbaKFHlr (ORCPT ); Thu, 6 Nov 2014 02:41:47 -0500 Received: by mail-wg0-f53.google.com with SMTP id b13so495214wgh.12 for ; Wed, 05 Nov 2014 23:41:45 -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=GsB6ivZzo6rOq+3yxw8twrzZ7TaZq6YVti62+cK55g0=; b=m+ayPqYlBXYttTD7xMIrFymP/9NXli3eo+KVwKcWcfCLwPgYE1yqZ+tC3o1PptdoFS BUYMJ8W/vpK0Zde7UCLo32f3i+SC0TnYi7HpUWltE7vz4JW6CrU8m3UJdjrCVUg40eUf lZvEhO9J40bYG4IRHa2JHnBn5vo9v705E8KzPxLzMvB6CzUHW7mhsQkElrTS7KXgqt4f p0tyz+jjuKQ/EAh/Kw2XhhF2eyptw159KXvGPAM5hMkUrWHIrZtj9MO3WIlJ/THXURsi pCBn1D5/5jM3Ufe1XNj6rngB8d3TTy00syFdBeG4QtPdsZw0ksc2mOCy/0thdiojkx25 akqA== X-Received: by 10.180.88.102 with SMTP id bf6mr37927367wib.43.1415259705820; Wed, 05 Nov 2014 23:41:45 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id gy4sm7236302wib.11.2014.11.05.23.41.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Nov 2014 23:41:44 -0800 (PST) From: Dmitry Eremin-Solenikov To: Russell King Cc: linux-pcmcia@lists.infradead.org, linux-fbdev@vger.kernel.org, Andrea Adami , Linus Walleij Subject: [PATCH RESEND 3/5] fbdev: sa1100fb: make use of device clock Date: Thu, 6 Nov 2014 10:41:15 +0300 Message-Id: <1415259677-18770-4-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1415259677-18770-1-git-send-email-dbaryshkov@gmail.com> References: <1415259677-18770-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=-4.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SUSPICIOUS_RECIPS, 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 Acked-by: Tomi Valkeinen --- drivers/video/fbdev/sa1100fb.c | 24 +++++++++++++++++------- drivers/video/fbdev/sa1100fb.h | 1 + 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/video/fbdev/sa1100fb.c b/drivers/video/fbdev/sa1100fb.c index 580c444e..8933840 100644 --- a/drivers/video/fbdev/sa1100fb.c +++ b/drivers/video/fbdev/sa1100fb.c @@ -178,6 +178,7 @@ #include #include #include +#include #include