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: 5145671 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 0721EC11AC for ; Fri, 24 Oct 2014 10:41:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A09120127 for ; Fri, 24 Oct 2014 10:41:40 +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 28AFE200D9 for ; Fri, 24 Oct 2014 10:41:39 +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 1XhcHK-0001df-Pp; Fri, 24 Oct 2014 10:39:30 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XhcGO-0000sA-It; Fri, 24 Oct 2014 10:38:33 +0000 Received: by mail-pa0-f43.google.com with SMTP id eu11so936796pac.2 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141024_033832_664228_296DB92C X-CRM114-Status: GOOD ( 15.44 ) X-Spam-Score: -0.8 (/) Cc: Andrea Adami , Jean-Christophe Plagniol-Villard , Linus Walleij , Tomi Valkeinen , Russell King 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=-3.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 | 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