From patchwork Fri Oct 24 10:37:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5145621 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 E50EFC11AC for ; Fri, 24 Oct 2014 10:40:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05E722021B for ; Fri, 24 Oct 2014 10:40:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A687200D9 for ; Fri, 24 Oct 2014 10:40:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755893AbaJXKkJ (ORCPT ); Fri, 24 Oct 2014 06:40:09 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:38519 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756234AbaJXKiL (ORCPT ); Fri, 24 Oct 2014 06:38:11 -0400 Received: by mail-pa0-f43.google.com with SMTP id eu11so921408pac.16 for ; Fri, 24 Oct 2014 03:38:11 -0700 (PDT) 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=A0lQ6RIKj+8WBJlQLxgKNr9aIIDxHYUmZxFD4r2kKEo=; b=ozmD0XUj6dt5HMlVkwWTRNw6uYSf3AsUiaHPdCaQ+fB6j2AZcXe1l9PYNHUrk13cY6 pN9DUWxwYhSdPQgeO8OEpTWWSG2YrHT27lo3I28yuZ0L8dEJ8ydYEyf/1FH+S39gFY+r xBcdcu/rnUGzR9mTLErRS5VeCdykdK/+vQxSe+nmGVytbmlVDCKkbT8fFLn63S0Nq7/j hJl1Dxi9Pm+mA4yLCcud8JynMEZajvv1XNnFa/+pcjTYuWB6XjFowpFKLFzXUbZNIxqo euwdutyMkJRtjokqxmO6Rx1d0PGIA6GS8UPuoxI9XcIuM7zGzB0ipx/0ZH+gCvCeqEFu i70w== X-Received: by 10.67.30.17 with SMTP id ka17mr3789120pad.62.1414147090954; Fri, 24 Oct 2014 03:38:10 -0700 (PDT) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id jc3sm3590019pbb.49.2014.10.24.03.38.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Oct 2014 03:38:10 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linux-arm-kernel@lists.infradead.org, linux-pcmcia@lists.infradead.org, linux-fbdev@vger.kernel.org Cc: Russell King , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Linus Walleij , Andrea Adami Subject: [PATCH 3/5] fbdev: sa1100fb: make use of device clock Date: Fri, 24 Oct 2014 14:37:25 +0400 Message-Id: <1414147047-12892-4-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1414147047-12892-1-git-send-email-dbaryshkov@gmail.com> References: <1414147047-12892-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=-8.2 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 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